Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on an alien species analysis looking at the spread of a species from the mainland to islands in an archipelago. I am doing the analysis using arcpy and I have succeeded in isolating risk zone islands based on how far the alien species can swim. Yup, the critters can swim some 2.000 meters.

With my islands isolated using repetitive buffer analysis I now need to be able to measure the minimum distance between one of the islands in the risk-zone and the mainland. So what I am looking for is something like this:


The closest I can get is the point distance tool. Since it only works with points I am out of luck. "Exploding" the features into points could be an option, but I would rather not have to go that way.

  • Is there some functionality I have overlooked which can support me on this task?
  • Using other libraries than arcpy might be option. Which libraries could give me a quick fix on this one?

For the record I am aware of a similar question with response about a year ago, but do not think it sufficiently answerede the question.

share|improve this question
If you could figure out how to build a line tangent to the main island perpendicular to the risk_islands and do makeRouteEventLayer then you could do a feature vertices to points on the risk islands vertices(possible in arcpy if you don't have arcinfo - curse through vertices and feature parts) you could then do locateFeaturesAlongRoute and this should give you the distances. You would have to feed a tolerance into the locate features and this would probably be available from your repetitive buffer analysis ending value. – Justin Oct 24 '12 at 13:15
up vote 5 down vote accepted

Use proximity analysis with the near tool.


You could create a cursor in a script or a model to loop through the features.

share|improve this answer
Looks like the best idea so far. Trying it now, but it seems like a very slow functionality. Of course measuring the distance of up to 1500 islands to a rather large scale coastline. – ragnvald Oct 25 '12 at 7:36
I am not aware of another way, using arcpy, to measure from nodes of a line/polygon. You can get to nodes in ArcObjects I believe and then a massive loop with the distance formula The other option as you stated is to explode the features to go from point to point. I would just use the built in tool that is at least supported if problems arise with the results. – theJones Oct 25 '12 at 17:23

One other idea may be to use a combination of centroids (arcpy.FeatureToPoint_management) and the arcpy.PointDistance_analysis tool. Hope that helps.

share|improve this answer
Good idea, but some of these islands are big and using their centroids would not help much in this case. – ragnvald Oct 24 '12 at 12:30

ArcGIS 10.1 has a new ArcPy Geometry function distanceTo(other geom). Returns the minimum distance between two geometries.

share|improve this answer
The documentation on this functionality with ESRI is scarce. No examples are provided. – ragnvald Oct 25 '12 at 7:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.