internal LocalNativeCoordinateSystemDefinition(CoordinateSystemCategory parent, MgPropertyCollection props)
     : base(parent)
 {
     int pcount = props.GetCount();
     for (int i = 0; i < pcount; i++)
     {
         var prop = props.GetItem(i);
         switch (prop.Name.ToLower())
         {
             case "code":
                 m_code = (prop as MgStringProperty).Value;
                 break;
             case "description":
                 m_description = (prop as MgStringProperty).Value;
                 break;
             case "projection":
                 m_projection = (prop as MgStringProperty).Value;
                 break;
             case "projection description":
                 m_projectionDescription = (prop as MgStringProperty).Value;
                 break;
             case "Datum":
                 m_datum = (prop as MgStringProperty).Value;
                 break;
             case "datum description":
                 m_datumDescription = (prop as MgStringProperty).Value;
                 break;
             case "ellipsoid":
                 m_ellipsoid = (prop as MgStringProperty).Value;
                 break;
             case "ellipsoid description":
                 m_ellipsoidDescription = (prop as MgStringProperty).Value;
                 break;
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CoordinateSystemBase"/> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 protected CoordinateSystemDefinitionBase(CoordinateSystemCategory parent)
 {
     m_parent = parent;
 }