![]() |
VOOZH | about |
dotnet add package Fluxera.Spatial.JsonNet --version 9.2.0
NuGet\Install-Package Fluxera.Spatial.JsonNet -Version 9.2.0
<PackageReference Include="Fluxera.Spatial.JsonNet" Version="9.2.0" />
<PackageVersion Include="Fluxera.Spatial.JsonNet" Version="9.2.0" />Directory.Packages.props
<PackageReference Include="Fluxera.Spatial.JsonNet" />Project file
paket add Fluxera.Spatial.JsonNet --version 9.2.0
#r "nuget: Fluxera.Spatial.JsonNet, 9.2.0"
#:package Fluxera.Spatial.JsonNet@9.2.0
#addin nuget:?package=Fluxera.Spatial.JsonNet&version=9.2.0Install as a Cake Addin
#tool nuget:?package=Fluxera.Spatial.JsonNet&version=9.2.0Install as a Cake Tool
A libary that provides spatial types based on GeoJSON defined in RFC 7946.
Just use the provied structs to define your classes that need gep-spatial informations in it.
public sealed class Restaurant
{
public string Name { get; set; }
public Point Location { get; set; }
}
This libary privide an inclomple implementation of RFC 7946 at the moment. The basic geometries are supported.
PointMultiPointLineStringMultiLineStringPolygonMultiPolygonGeometryCollectionPlease refer to the documentation of RFC 7946 for details.
At the moment serialization support is available for:
The serializers make sure that the objects are serialized in the GeoJSON format and in case of databases also stored im the correct format to support indexing and geo queries.
To support the GeoJSON objects in JSON.NET use the UseSpatial extension method on the JsonSerializerSettings.
JsonSerializerSettings settings = new JsonSerializerSettings();
// Use the serialization support for GeoJSON objects.
settings.UseSpatial();
JsonConvert.DefaultSettings = () => settings;
To support the GeoJSON objects in LiteDB use the UseSpatial extension method on the global BsonMapper.
BsonMapper.Global.UseSpatial();
To support the GeoJSON objects in MongoDB use the UseSpatial extension method on a ConventionPack.
ConventionPack pack = new ConventionPack();
pack.UseSpatial();
ConventionRegistry.Register("ConventionPack", pack, t => true);
To support the GeoJSON objects in System.Text.Json use the UseSpatial extension method on the JsonSerializerOptions.
private JsonSerializerOptions options;
this.options = new JsonSerializerOptions
{
WriteIndented = false
};
this.options.UseSpatial();
JsonSerializer.Serialize(Point.Empty, this.options);
We plan to add support for EFCore and OData and to add the missing pieces of the RFC Specification.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.2.0 | 248 | 7/28/2025 |
| 9.0.1 | 714 | 2/5/2025 |
| 9.0.0 | 267 | 11/14/2024 |
| 8.1.4 | 301 | 11/1/2024 |
| 8.1.3 | 741 | 7/9/2024 |
| 8.1.2 | 278 | 6/15/2024 |
| 8.1.1 | 263 | 6/12/2024 |
| 8.1.0 | 246 | 5/26/2024 |
| 8.0.7 | 259 | 5/24/2024 |
| 8.0.6 | 269 | 4/13/2024 |
| 8.0.5 | 263 | 4/13/2024 |
| 8.0.4 | 289 | 3/19/2024 |
| 8.0.3 | 275 | 2/22/2024 |
| 8.0.2 | 340 | 1/4/2024 |
| 8.0.1 | 272 | 11/23/2023 |
| 8.0.0 | 228 | 11/15/2023 |
| 7.1.6 | 317 | 7/23/2023 |
| 7.1.5 | 268 | 7/20/2023 |
| 7.1.4 | 284 | 6/21/2023 |
| 7.1.3 | 325 | 4/13/2023 |