Finding a geoevent in a polygon

Anonymous
03-15-2005, 01:24 AM
Hi,

I am doing a tracking application, i want to check whether the geoevent is inside the geofence or not.

Plz. send me the code.

Its urgent......

Thanks in advance

Regards,
Prakash

Wilfried
03-15-2005, 02:33 AM
Hi,

If it is a shape that comes with mappoint you can let Mappoint check for this. If it is rectangle, circle and so then it is easy to calculate in your program. If it is an irregular polygon (not a known mathematical figure), then you have to make triangles from out ot the figure by skipping 1 point at the time, until you eather find the vehicle in the triangle, or until you have the last triangle of the figure.

 
Web mp2kmag.com
mapforums.com