public override string AsGml(DbGeography geographyValue)
 {
     geographyValue.CheckNull("geographyValue");
     var expectedValue = CheckCompatible(geographyValue);
     return expectedValue.GML;
 }
 public override int GetCoordinateSystemId(DbGeography geographyValue)
 {
     geographyValue.CheckNull("geographyValue");
     var backingValue = CheckCompatible(geographyValue);
     return backingValue.CoordinateSystemId;
 }
 public override byte[] AsBinary(DbGeography geographyValue)
 {
     geographyValue.CheckNull("geographyValue");
     var expectedValue = CheckCompatible(geographyValue);
     return expectedValue.CloneBinary();
 }
 public override DbGeographyWellKnownValue CreateWellKnownValue(DbGeography geographyValue)
 {
     geographyValue.CheckNull("geographyValue");
     var backingValue = CheckCompatible(geographyValue);
     return new DbGeographyWellKnownValue
         {
             CoordinateSystemId = backingValue.CoordinateSystemId,
             WellKnownBinary = backingValue.CloneBinary(),
             WellKnownText = backingValue.Text
         };
 }