public static DbGeometry ToDbGeometry(this IGeometryObject geometryObject, int coordinateSystemId = 4326) { return(DbGeometry.FromBinary(WkbEncode.Encode(geometryObject), coordinateSystemId)); }
public static byte[] ToWkb(this IGeometryObject geometryObject) { return WkbEncode.Encode(geometryObject); }
public static DbGeometry ToDbGeometry(this IGeometryObject geometryObject) { return(DbGeometry.FromBinary(WkbEncode.Encode(geometryObject))); }
public static DbGeography ToDbGeography(this IGeometryObject geometryObject) { DbGeography value = DbGeography.FromBinary(WkbEncode.Encode(geometryObject)); return(value); }