Exemplo n.º 1
0
 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)));
 }
Exemplo n.º 4
0
        public static DbGeography ToDbGeography(this IGeometryObject geometryObject)
        {
            DbGeography value = DbGeography.FromBinary(WkbEncode.Encode(geometryObject));

            return(value);
        }