It's relatively easy to do. Here're the basic steps:

1) Make a Buffer around a point (buffer size = treshold)
2) Find LineStrings intersecting a Buffer
3) If no LineStrings were found, then return original point (or whatever)
4) Enumerate each LineString vertex to see which one is closest to the point
(distance comparer)
5) Return closest LineString vertex as a "snap" point

Regards,
Maksim Sestic



Wind wrote:
> 
> hello everyone: Has anyone done any snapping point to line in mapguide
> enterprise?
> 
> ---------- Forwarded message ----------
> From: Wind <[EMAIL PROTECTED]>
> Date: Dec 18, 2007 11:38 AM
> Subject: Re: [mapguide-users] Digitizing demo
> To: [email protected]
> 
> 
> 
> hello everyone: Has anyone done any snapping point to line in mapguide
> enterprise?
> 
> 
> 
> BradM wrote:
>>
>> Hello all:  Digitizing new point, line and polygon features is critical
>> for mapping features on the community mapping network at www.cmnbc.ca.
>> Does anybody have digitizing tools working in a demo that I can view?  
>> Is
>> anybody interested in developing the tools to make them really efficient?
>> We need tools that  give added functionality for editing,  creating new
>> points by adding a distance and a bearing from one point to the next,
>> creating shapefiles, downloading shapefiles, snapping points to lines and
>> more....
>> thanks
>>
> 
> --
> View this message in context:
> http://www.nabble.com/Digitizing-demo-tp4127680s16610p14377506.html
> Sent from the MapGuide Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> mapguide-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> _______________________________________________
> mapguide-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Fwd%3A-Line-Snapping-tp14451050s16610p14453876.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to