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

Probelem with Intersection testing with NetTopologySuite

Topics: Algorithms
Jun 30, 2011 at 4: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 11:22 AM

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