Least Cost Path (Spatial Analyst) - Raster Line output to shapefile

05-28-2013 02:20 PM
New Contributor
Hi there,

I have been using cost distance and least cost path to give me the optimal route between 2 points.  The output of this is a raster line.  I have converted this raster line to a vector polyline however I am encountering some difficulty.

1) The shapefile is rather jagged and not a smooth line - is this a function of my raster cost surface?  Anyone know a way for me to smooth out the line based on some level of tolerance for jaggedness?

2) I have been unable to find a way to add the "cost" of that raster line to the vector polyline as an attribute.  I guess this comes down to taking a raster value and attributing it to a vector field (?).

If anyone has any ideas on how I might accomplish these two problems, please let me know.
0 Kudos
2 Replies
New Contributor III

1 - Yes, you are getting that jagged line because of it being derived from a raster. Perhaps you could use something like that to smooth the result?

2 - Not sure how you'd go about doing this. Offhand, I can't remember what the VAT looks like for the least cost path raster.
0 Kudos
Regular Contributor III
#1: You might find this thread interesting (same Jenn B?): http://forums.arcgis.com/threads/44464-Problems-with-cost-path-analysis-not-shortest-distance

#2: You should be able to to run stats on your paths using the ZonalStatistics or ZonalStatisticsAsTable tools. Your path would be the zone, and you could calculate MAX or MEAN cost values (or some other stat) from your cost surface.
0 Kudos