Ejemplo n.º 1
0
 static public GeoJSON.Net.Geometry.IGeometryObject GeometryFromDbGeography(DbGeography p_DbGeography)
 {
     return(WkbDecode.Decode(p_DbGeography.AsBinary()));
 }
Ejemplo n.º 2
0
 static public GeoJSON.Net.Geometry.IGeometryObject GeometryFromWkb(byte[] p_Wkb)
 {
     return(WkbDecode.Decode(p_Wkb));
 }
Ejemplo n.º 3
0
        static public GeoJSON.Net.Feature.Feature FeatureFromDbGeography(DbGeography p_DbGeography, object p_Properties = null, string p_Id = null)
        {
            var v_geo = WkbDecode.Decode(p_DbGeography.AsBinary());

            return(new GeoJSON.Net.Feature.Feature(v_geo, p_Properties, p_Id));
        }