This project has moved. For the latest updates, please go here.

geometry within another geometry

Jun 29, 2011 at 6:03 AM

I have used the intersection features of sharpmap to tell if certain geometries intersect a layer, is there any way to tell if one geometry is entirely within another geometry?

Jun 29, 2011 at 6:48 AM

SharpMap only computes spatial relations on the geometries bounding boxes. If you need to do that for the geometry you need the aid of either

  • NetTopologySuite
    A geometry converter is provided in the SharpMap.Extensions project.
  • SharpMap.SqlServerSpatialObjects

With both you can compute all kind of spatial relations... The function you are looking for is Contains( other )

Hth FObermaier