Home
The main goal of this project is to have a .NET GIS solution that is fast and reliable for the .NET platform. NetTopologySuite is a direct-port of all the functionalities offered by JTS Topology Suite: NTS expose JTS in a '.NET way', as example using Properties, Indexers etc...
An excerpt from JTS Topology Suite project site explains the capabilities of NTS:
"The JTS Topology Suite is a Java library for creating and manipulating vector geometry. It also provides a comprehensive set of geometry test cases."
Some introductory guidelines can be found on the Getting Started page.
Further in-depth information is available in our API documentation.
- When creating your geometries by using
NetTopologySuite.IO.WKTReader
instantiated by the default constructor, you will get geometries that are built using 3 dimensional coordinates. This might lead to unexpected results. To avoid this, instantiate yourWKTReader
using the following syntax:var reader = NetTopologySuite.IO.WKTReader { IsOldNtsCoordinateSyntaxAllowed = false };
- When debugging your application that targets full .NET Framework you might experience issues with some properties of
Geometry
instances. To prevent this, you need to add the following lines of code to the startup of your application:#if DEBUG // Assign GeometryFactory.Default to make sure lazy properties are // properly instantiated and debugging works without exceptions // see: https://github.com/NetTopologySuite/NetTopologySuite/issues/573 var theDefaultFactory = GeometryFactory.Default; #endif
Our Q&A Forum is now right here at github. Feel free to ask for any kind of support or to post suggestions or specific requests.
You can still find our former Q&A forum hosted on Google Group.
Latest released version is NTS 2.5.0, that matches functionalities of JTS 1.19.0 and contains many improvements and bugfixes. You can found the new version in the NuGet Gallery.
Enjoy using them!