GeoJSON.NET alternatives and similar packages
Based on the "Gis" category.
Alternatively, view GeoJSON.NET alternatives based on common mentions on social networks and blogs.
-
OsmSharp
C# library to work with OpenStreetMap (OSM) data. Provides reading, writing and route-planning for OSM data. -
CoordinateSharp
Easily parse or convert coordinate formats and calculate location based solar/lunar information. -
DEM Net Elevation API
.Net library for Digital Elevation Models, allows 3D terrain generation in glTF / STL format. -
OpenCage Data Geocoding Library for .Net Standard
A .Net Wrapper for The OpenCage Geocoder -
GeoJSON4EntityFramework
A library to create GeoJSON from Entity Framework Spatial Data or Well-Known Text (WKT) inputs.
Pixel-Perfect Multi-Platform Applications with C# and XAML
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of GeoJSON.NET or a related project?
README
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.
Special considerations for ASP.Net Core 3+
System.Text.Json is the default (recommended) serializer. GeoJSON.Net does not play well with System.Text.Json. Here are the recommended steps as a workaround:
- add the "Microsoft.AspNetCore.Mvc.NewtonsoftJson" NuGet Package
- add "services.AddControllers().AddNewtonsoftJson();" to your service configuration.
(Thanks for @jrowe88 for pointing this out)
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.
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers! ๐ [Become a backer]
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]