Select to view content in your preferred language

Calculating Stream Gage Distance to Coast

1752
1
07-13-2011 08:02 AM
WilliamArmstrong1
New Contributor
Hi all,

I am trying to calculate the distance to the coast for 75 stream gages I am studying.  I created a polyline that is a rough approximation of the coast, and my gages are represented in a point shapefile.  So, I need to calculate the distance to the coast polyline from all my gages. Does anyone know a tool that would be useful for this purpose?  I have tried the 'distance' and 'near' tools, but 'distance' doesn't seem to be able to consider polylines and 'near' just gave me a bunch of 0's and 1's for its answer.

Thank you very much for your help.

Billy
Tags (2)
0 Kudos
1 Reply
MarkBoucher
Honored Contributor
I did a quick try of this. I have v10.0 SP2.

I also got no result of -1, -1 for the NEAR_FID and NEAR_DIST.

Then then found that if my shore line was in a geodatabase, I got -1, -1 for the NEAR_FID and NEAR_DIST. Once I exported the shore to a shape file, it worked.

I also found that if I was re-running the Near function, I needed to recalculate the NEAR_FID and  NEAR_DIST to 0 using the field calculator before I got any results.

Hope this helps.
0 Kudos