This project is read-only.

Find nearest Line from a Point

Oct 23, 2011 at 7:21 AM

Hi all,

I am new with MapWinGIS. I am building an app where a Point moves programmatically, usually very close to a polyline. What would be the best way to get the nearest line properties, so that I can move the point closer to the line (while doing this i wish to retreive the line shape information)?

I have tried to use MapWinGeoProc.SpatialOperations.GetShapeNearestToPoint with no luck.. no documentation found, and reading the source code doesn't help (i'm a newbie programmer). Can anybody guide me on how to use MapWinGeoProc, or suggest a better way to find the nearest line?

using .NET with VS 2010 Express.

Thanks in advance.

Oct 26, 2011 at 4:57 AM
Edited Nov 1, 2011 at 4:40 AM

Someone help me to brain this..

Edit: Nevermind, i used SelectShapes instead.