[geos-devel] C# Bindings?

Simon Perkins sy at perkins.net
Tue Sep 11 17:30:36 EDT 2007


Hi,

Are there any C# bindings for GEOS out there?

We've been using the OGR interface to GEOS (which are exposed by the OGR 
C# bindings), but are running into some strange topology exceptions 
(side location conflicts and non-nodal intersections) and I'd like to 
use the GEOS isValid() method which is not exposed by OGR, AFAIK. Might 
using the GEOS library directly be more efficient than going through OGR 
as well?

In general, is there an easy way to "clean up" a geometry so it won't 
raise these kinds of exceptions? The geometries in question are all 
generated by the union of (many) simple polygons.

Anyway, I could go off and roll PInvoke stubs for the GEOS functions I 
need in not much time, but I figured I'd see what other people have 
already before I do that. Any interest in adding such bindings to geos? 
I could also take a look at SWIG, but it always scares me for some reason...

Cheers,

Sy




More information about the geos-devel mailing list