This project has moved and is read-only. For the latest updates, please go here.

Probelem with Intersection testing with NetTopologySuite

Topics: Algorithms
Jun 30, 2011 at 5:05 AM

Any one can help me Please.

I have point with Long/Lat, then I want to identify if this point intersect with LineString (my street) in shape file.

I try with  TrueIntersectionTestingWithNTS sample, eg : 

bool intersects = testGeometryAsNtsGeom.Buffer(12).Intersects(compareGeometryAsNtsGeometry);

but I think the result was wrong.

I want to buffer just in 12 meters, because the street width is about 12 meters



Jun 30, 2011 at 12:22 PM

you need to either

  • transform your geometry to some metric projected geometry, using either Proj.Net or DotSpatial.Projections and then apply your buffer or
  • calculate how many degrees a buffer of 12 meters would be and apply that. (

Hth FObermaier