Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

3 Answers 3

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: 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

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

 
discard

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.