Skip to content

Latest commit

History

84 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

NuGet VersionNuGet VersionNuGet VersionBuild status

GeoJSON.Net.Contrib

Repository for all GeoJSON.Net *.Contrib projects

GeoJSON.Net.Contrib.MsSqlSpatial

Allows conversion from / to Microsoft Sql Server geometry and geography data types.

NuGet package: Install-Package GeoJSON.Net.Contrib.MsSqlSpatial

Conversion examples:

usingGeoJSON.Net.Geometry;usingMicrosoft.SqlServer.Types;usingGeoJSON.Net.Contrib.MsSqlSpatial;// SqlGeometry sample pointSqlGeometrysimplePoint=SqlGeometry.Point(1,47,4326);// SqlGeometry -> GeoJSON examplePointpoint=simplePoint.ToGeoJSONObject<Point>();// GeoJSON -> SqlGeometry exampleSqlGeometrysqlPoint=point.ToSqlGeometry(4326);

WKT conversion examples:

usingGeoJSON.Net.Contrib.MsSqlSpatial;usingGeoJSON.Net.Geometry;// LineString from WKTLineStringlineString=WktConvert.GeoJSONObject<LineString>("LINESTRING(1 47,1 46,0 46,0 47,1 47)");// LineString IGeometryObject from WKTIGeometryObjectlineStringGeom=WktConvert.GeoJSONGeometry("LINESTRING(1 47,1 46,0 46,0 47,1 47)");

GeoJSON.Net.Contrib.EntityFramework

Allows conversion from / to EntityFramework geometry and geography data types.

NuGet package: Install-Package GeoJSON.Net.Contrib.EntityFramework

Conversion examples:

usingGeoJSON.Net.Geometry;usingGeoJSON.Net.Contrib.EntityFramework;// DbGeography sample pointvardbGeographyPoint=DbGeography.FromText("POINT(30 10)",4326);// DbGeography -> GeoJSON examplePointpoint=dbGeographyPoint.ToGeoJSONObject<Point>();// GeoJSON -> DbGeography exampleDbGeographydbGeographyPoint=point.ToDbGeography();

GeoJSON.Net.Contrib.Wkb

Allows conversion from / to Wkb binary types.

NuGet package: Install-Package GeoJSON.Net.Contrib.Wkb

Conversion examples:

usingGeoJSON.Net.Geometry;usingGeoJSON.Net.Contrib.Wkb;// GeoJson sample pointPointpoint=newPoint(newPosition(53.2455662,90.65464646));// GeoJson -> Wkb examplebyte[]wkbPoint=point.ToWkb();// Wkb -> GeoJson examplePointpointFromWkb=wkbPoint.ToGeoJSONObject<Point>();

About

Repository for all GeoJSON.Net *.Contrib projects

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages