NetGeo.System.Text.Json
2023.3.157.13
dotnet add package NetGeo.System.Text.Json --version 2023.3.157.13
NuGet\Install-Package NetGeo.System.Text.Json -Version 2023.3.157.13
<PackageReference Include="NetGeo.System.Text.Json" Version="2023.3.157.13" />
paket add NetGeo.System.Text.Json --version 2023.3.157.13
#r "nuget: NetGeo.System.Text.Json, 2023.3.157.13"
// Install NetGeo.System.Text.Json as a Cake Addin
#addin nuget:?package=NetGeo.System.Text.Json&version=2023.3.157.13
// Install NetGeo.System.Text.Json as a Cake Tool
#tool nuget:?package=NetGeo.System.Text.Json&version=2023.3.157.13
NetGeo
This library handle GeoJson supports for C#.
Also you can convert GeoJson to OGC WKT, OGC WKT 2, ESRI WKT, PROJ.4, Proj4Js, JSON and vice versa.
Also you can parse across CRS (Coordinate Reference Systems) and projections.
Table of contents
Packages
Install
Install using nuget:
dotnet add package NetGeo.Json
dotnet add package NetGeo.System.Text.Json
dotnet add package NetGeo.Newtonsoft.Json
The packages NetGeo.{{third-party}}.Json already references NetGeo.Json.
Supported Versions
Packages version | dotnet Version |
---|---|
2023.X | netstandard2.0 |
2023.X | netstandard2.1 |
2023.X | .net 5 |
2023.X | .net 6 |
2023.X | .net 7 |
Notes
If your using Newtonsoft.Json, you need to add the following code to your startup:
GeoExtensions.SetDefaults();
If your using System.Text.Json, you need to use extensions methods:
var geoJson = "{\"type\":\"Point\",\"coordinates\":[1,2]}";
var geoObject = geoJson.ToGeoObject();
var geoPoint = geoJson.ToGeoObject<Point>();
var json = geoObject.ToGeoJson();
var jsonPoint = geoPoint.ToGeoJson();
The extensions methods runs with Newtonsoft.Json and System.Text.Json.
In Development
- CRS Convertion
- Other types where is not GeoJSON
- .NET 8
- Comming in Dec 2023
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- IndexRange (>= 1.0.2)
- NetGeo.Json (>= 2023.3.157.13)
- System.Text.Json (>= 7.0.2)
-
.NETStandard 2.1
- IndexRange (>= 1.0.2)
- NetGeo.Json (>= 2023.3.157.13)
- System.Text.Json (>= 7.0.2)
-
net6.0
- NetGeo.Json (>= 2023.3.157.13)
- System.Text.Json (>= 7.0.2)
-
net7.0
- NetGeo.Json (>= 2023.3.157.13)
- System.Text.Json (>= 7.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
Update references