Lightweight geospatial .NET library with geodesic support using Haversine and Vincenty algorithms.
$ dotnet add package SharpSpatialSharpSpatial is a lightweight geospatial library for .NET, built as a modern alternative to SqlGeography and SqlGeometry, with full support for .NET Core and custom geodesic calculations written entirely in C#.
It combines the power of NetTopologySuite, GeoAPI, and ProjNET4GeoAPI for planar operations, while offering accurate geodesic calculations (Haversine and Vincenty) and basic projection capabilities (Spherical Mercator).
While useful in many real-world applications, SharpSpatial is not a full GIS engine.
Here’s what it doesn’t do (yet):
Still, for many server-side or data-processing tasks, it offers exactly what’s needed — with minimal overhead.
Via NuGet:
dotnet add package SharpSpatial
// TODO
SqlGeography in .NET Core appsI develop and maintain SharpSpatial in my free time, focusing on practical tools I use myself in the real world.
If you find this project useful, please consider sponsoring me on GitHub.
Even a small donation helps me keep the library maintained, improved, and open for everyone.
Have an idea or feedback? Open an issue or start a discussion.
Licensed under the MIT License – free to use, modify, and distribute.
Accurate geospatial logic for .NET, without the overhead.