I am looking for a .NET implementation of the geometry object model described in OGS's Simple Feature Access, Part 1 specification.

Preferably lightweight. I don't need WKT support, just the capability of instantiating spatially referenced geometries and the ability to determine basic spatial relationships between them.

Any suggestions?

3 Answers 3


You can check Net Topology Suite with GeoAPI .NET


+1 for the NTS & GeoAPI.

You could also use the SqlGeometry in Microsoft.SqlServer.Types: http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.types.sqlgeometry_members.aspx

If you scroll to the bottom of this page, there is an c# example of constructing geometry and calling an OGC method: http://www.microsoftbible.com/tag/sqlgeometry

  • Thanks for the suggestion. I hesitate to commit myself to types from the Microsoft.SqlServer namespace (Mono ambitions later on), but +1 as this may be less of a concern for others.
    – user166
    Commented Jul 28, 2010 at 10:43

I've also had luck using the actual Java Topology Suite (JTS) on which many open-source 2D geometry libraries are based. Using the scarily amazing IKVM, you can just compile JTS as a .NET Assembly and you're off and away. You can use the objects natively, or you can wrapper them if you feel like it. The raw JTS library is rather light on input/output options, but computationally you're all set.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.