Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? Thanks.

share|improve this question
up vote 6 down vote accepted

You can check Net Topology Suite with GeoAPI .NET

share|improve this answer

+1 for the NTS & GeoAPI.

You could also use the SqlGeometry in Microsoft.SqlServer.Types:

If you scroll to the bottom of this page, there is an c# example of constructing geometry and calling an OGC method:

share|improve this answer
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. – Cumbayah Jul 28 '10 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.