Hi,
I have extended the example where tracking is used to measure the length of a line string with some snapping functionality. This is working fine when tracking the start and the end point of the track. But snapping to a vertex fails.
The same snapping function is also used tracking a polygon to measure the area. All points will be snapped correct.
The function SnapToFeature will handle the feature which should be snapped as a MultiPoint geometry (therefore a feature will be parsed and with my function ExtractPoints the MultiPoint will be returned).
Any idea why the vertex from a line string will not be drawn/created correct? Snapping is correct but the replacement of the clicked point and the snapped point has no effect to the track geometry and this will return a wrong measurement.
Attached the track class and the functions from my solution.
Regards
Hardy
sample.vb (13 KB)