![]() |
VOOZH | about |
dotnet add package Spatial4n --version 0.4.1.1
NuGet\Install-Package Spatial4n -Version 0.4.1.1
<PackageReference Include="Spatial4n" Version="0.4.1.1" />
<PackageVersion Include="Spatial4n" Version="0.4.1.1" />Directory.Packages.props
<PackageReference Include="Spatial4n" />Project file
paket add Spatial4n --version 0.4.1.1
#r "nuget: Spatial4n, 0.4.1.1"
#:package Spatial4n@0.4.1.1
#addin nuget:?package=Spatial4n&version=0.4.1.1Install as a Cake Addin
#tool nuget:?package=Spatial4n&version=0.4.1.1Install as a Cake Tool
👁 Nuget
👁 Azure DevOps builds (branch)
👁 GitHub
👁 GitHub Sponsors
Spatial4n is a general purpose spatial / geospatial library for .NET, a direct port of the spatial4j Java library. Its core capabilities are:
When working with grid square indexing schemes, you will likely to find something especially useful in Spatial4n.
The main part of Spatial4n is its collection of shapes. Shapes in Spatial4n have these features:
Contains, Within, Disjoint, Intersects. Note that Spatial4n doesn't have a notion of "touching".Spatial4n has a variety of shapes that operate in Euclidean-space -- i.e. a flat 2D plane. Most shapes are augmented to support a wrap-around at X -180/+180 for compatibility with latitude & longitudes, which is effectively a cylindrical model. But the real bonus is its circle (i.e. point-radius shape that can operate on a surface-of-a-sphere model. See below for further info. The term "geodetic" or "geodesic" or "geo" is used here as synonymous with that model but technically those words have a more broad meaning.
| Shape | Euclidean | Cylindrical | Spherical |
|---|---|---|---|
| Point | Y | Y | Y |
| Rectangle | Y | Y | Y |
| Circle | Y | N | Y |
| LineString | Y | N | N |
| Buffered L/S | Y | N | N |
| Polygon | Y | Y | N |
| ShapeCollection | Y | Y | Y |
Geometry, which is to say that most of the fundamental logic for that shape is implemented by NTS.Currently, the best sources of documentation are the Spatial4j javadocs and the Spatial4j Getting Started section.
To build the project from source, see the Building and Testing documentation.
If you find this library to be useful, please star us on GitHub and consider a financial sponsorship so we can continue bringing you great free tools like this one.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net35 net35 is compatible. net40 net40 is compatible. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on Spatial4n:
| Package | Downloads |
|---|---|
|
Lucene.Net.Spatial
Geospatial search for the Lucene.NET full-text search engine library from The Apache Software Foundation. Documentation: https://lucenenet.apache.org/docs/4.8.0-beta00017/api/spatial/Lucene.Net.Spatial.html This package is part of the Lucene.NET project: https://www.nuget.org/packages/Lucene.Net/4.8.0-beta00017 |
|
|
Lucene.Net.Benchmark
System for benchmarking the Lucene.NET full-text search engine library from The Apache Software Foundation. Documentation: https://lucenenet.apache.org/docs/4.8.0-beta00017/api/benchmark/Lucene.Net.Benchmarks.html This package is part of the Lucene.NET project: https://www.nuget.org/packages/Lucene.Net/4.8.0-beta00017 |
Showing the top 2 popular GitHub repositories that depend on Spatial4n:
| Repository | Stars |
|---|---|
|
ravendb/ravendb
ACID Document Database
|
|
|
apache/lucenenet
Apache Lucene.NET is an open-source full-text search library written in C#, ported from the Apache Lucene project.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.4.1.1 | 1,301,885 | 2/11/2022 |