Skip to content

unitycoder/GeoJson.NET-Unity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

132 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuGet Version Build status

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

Version 2.0.x

Breaking Changes

  • IPosition has been removed as it was deemed as redundant and a left over from the original GeoJSON spec.
  • GeoJSON.Net.Feature namesapce renamed to GeoJSON.Net.Features

General Changes

  • Nothing much yet!

Also 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.

Thanks

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

About

A port of the .NET library for GeoJSON types & corresponding Json.NET (de)serializers that works with Unity and .NET 4.6 (C# 6.0)

Resources

License

Stars

3 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • C# 100.0%