Skip to content

.Net library for GeoJSON types & corresponding Json.Net (de)serializers

License

Notifications You must be signed in to change notification settings

GeoJSON-Net/GeoJSON.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuGet Version Build status

*** Notice ***

A quick note... sorry to everyone who has been following or using this project over t last year, I started a new role a year ago and it took some time away from this project, when that calmed down I actually got locked out of my GitHub account and as it had two factor authentication on it was not an easy task getting back in. This is all sorted now and I'm going to be starting back on this project now. MattLethargic, Aug '18

GeoJSON.NET

GeoJSON.Net is a .NET library for the RFC 7946 The GeoJSON Format and it uses and provides Newtonsoft Json.NET converters for serialization and deserialization of GeoJSON data.

Installation & Usage

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

Serialization

Position position = new Position(51.899523, -2.124156);
Point point = new Point(position);

string json = JsonConvert.SerializeObject(point);

Deserialization

string json = "{\"coordinates\":[-2.124156,51.899523],\"type\":\"Point\"}";

Point point = JsonConvert.DeserializeObject<Point>(json);

See the Tests for more examples.

News

It's probably best to check out the commits and the issues what has been added over time.

Contributing

Highly welcome! Just fork away and send a pull request. We try and review most pull requests within a couple of days. There is now a version 2.0.0 branch. I've created this ready for any breaking changes and any extra features and would encourage anything that isn't a bug fix to go in there.

Thanks

This library would be NOTHING without its contributors - thanks so much!!

Sponsors

We have the awesome .NET tools from JetBrains.

Resharper