Distance from Point to Polygon

2203
1
11-05-2010 05:30 AM
PeterMcAlenney
New Contributor II
Hi,

This sounds simple, but is tedious.  I am performing some modeling client-side in actionscript using an array of points layed out in a uniform grid.  Could be 10,000 or more depending on detail of the model.  The model essentially calculates the distance from each model point to a target GIS layer (typically a polygon layer), which may have 100s of polygons.  So, for each model point, to get the shortest distance to a polygon, you have to iterate over all the target polygons' vertices and perform a distance calc, keeping the shortest one.  Each target polygon could have hundreds of verticies, so you see how this does not scale well.

Is there a FAST way in actionscript using ESRI MapPoint and Polygon objects to determine a distance?

Any help would be great!

Thanks,
Pete
Tags (2)
0 Kudos
1 Reply
MarkusEichhorn
New Contributor II
Hi Pete,
I'm sorry I cannot answer your question. But I want to ask you to another thread 8instantly from the flex 1.3 dynamic legend discusion), which is already deleted by esri. If you read this, please answer or contact me.
Thanks a lot, Markus
0 Kudos