public static GeographicPointLocation FromXmlType(GeographicPointLocationType oio)
 {
     if (oio != null)
     {
         return(new GeographicPointLocation()
         {
             CrsIdentifier = oio.crsIdentifier,
             GeographicCoorditaneTuple = GeographicCoorditaneTuple.FromXmlType(oio.GeographicCoordinateTuple),
         });
     }
     return(null);
 }
 public static GeographicPointLocationType ToXmlType(GeographicPointLocation db)
 {
     if (db != null)
     {
         return(new GeographicPointLocationType()
         {
             crsIdentifier = db.CrsIdentifier,
             GeographicCoordinateTuple = GeographicCoorditaneTuple.ToXmlType(db.GeographicCoorditaneTuple),
         });
     }
     return(null);
 }
Example #3
0
 public static GeographicCoordinateTupleType ToXmlType(GeographicCoorditaneTuple db)
 {
     if (db != null)
     {
         return(new GeographicCoordinateTupleType()
         {
             GeographicEastingMeasure = db.Easting,
             GeographicHeightMeasure = db.Height.HasValue ? db.Height.Value : 0,
             GeographicHeightMeasureSpecified = db.Height.HasValue,
             GeographicNorthingMeasure = db.Northing,
         });
     }
     return(null);
 }