Hi list,
I posted this question to one of the ArcView lists last week but didn't get much response. It's really more of a general gis question, but in my optimism I was hoping for some Avenue code.
There's various ways to calculate the distance between two polygons. To name a few:
1 - Minimum distance between them (what you get from the (ArcView) Avenue Distance request). 2 - Maximum distance between them. 3 - Distance between centroids.
But what about a weighted average distance? Weighted, to account for the area of the polygon (as opposed to the average of 1 and 2 above, for example).
One way to think of this is to create a grid of points inside each of the polygons and then calculate the distance from each point in polygon 1 to each point in polygon 2, and then take the average value in this matrix.
Does this concept have a name? Anyone have any thoughts, ideas, code that does this?
Bryan
Bryan Keith GIS Specialist Geomega, Inc. Boulder, CO, USA bryan@geomega.com
_______________________________________________ gislist mailing list gislist@lists.geocomm.com http://lists.geocomm.com/mailman/listinfo/gislist
_________________________________ This list is brought to you by The GeoCommunity http://www.geocomm.com/
Get Access to the latest GIS & Geospatial Industry RFPs and bids http://www.geobids.com
|