Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork167
.Net library for GeoJSON types & corresponding Json.Net (de)serializers
License
GeoJSON-Net/GeoJSON.Net
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
GeoJSON.Net is a .NET library for theRFC 7946 The GeoJSON Format and it uses and providesNewtonsoft Json.NET converters for serialization and deserialization of GeoJSON data.
GeoJSON.Net NuGet package:Install-Package GeoJSON.Net
Positionposition=newPosition(51.899523,-2.124156);Pointpoint=newPoint(position);stringjson=JsonConvert.SerializeObject(point);
stringjson="{\"coordinates\":[-2.124156,51.899523],\"type\":\"Point\"}";Pointpoint=JsonConvert.DeserializeObject<Point>(json);
See theTests for more examples.
System.Text.Json is the default (recommended) serializer. GeoJSON.Netdoes not play well with System.Text.Json and only supports Newtonsoft.Json
GeoJSON.Text is a fork of this repository and have been developed to support System.Text.Json.
If you still need to use Newtonsoft.Json in ASP.Net Core 3.1+, you must overwrite the default serializer.
- add the "Microsoft.AspNetCore.Mvc.NewtonsoftJson" NuGet Package
- add "services.AddControllers().AddNewtonsoftJson();" to your service configuration.
Highly welcome! Just fork away and send a pull request. We try and review most pull requests within a couple of days.
This library would be NOTHING without itscontributors - thanks so much!!
This project exists thanks to all the people who contribute.
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
About
.Net library for GeoJSON types & corresponding Json.Net (de)serializers
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.