Select to view content in your preferred language

Least Cost Path - for dummies

4252
12
03-01-2013 12:26 PM
JaredReid1
Emerging Contributor
I have never used Least Cost Path before and the online help is WAY over my head.

Can someone please break it down for me how to find the Least Cost Path between 2 points?


--

The data I have to weigh this path is as follows:

One NED from USGS with elevation in meters.
2 points (My start and end points)
4 High Consquence areas polygons (ecological sensitive, drinking water, other populated, and highly populated)

thanks,
Jared
0 Kudos
12 Replies
JaredReid1
Emerging Contributor
Ok seems like I'm not getting much help so I'm going to post my trials and errors here.

Looks like my first step is to take my very large(geographically) DEM and clip it to just the area I want.   So I created a polygon over the parts of the DEM that I want to clip.   Then I went to the Toolbox - Data Management Tools - Raster - Raster Processing - Clip.

I then found out I need to reclassify my newly clipped DEM.  (why I'm not sure)  I turned Spatial Analyst extension on.  Then selected my clipped DEM in the drop down box.  Then clicked Spatial Analyst - Reclassify.   I choose to have 8 unique values based on the range of elevation.  Those 8 values I assume I will be given weighted values later on.  ie.  1-4 no cost, 4-6 medium cost, 7 high and 8 avoid.

----

That now leaves me with my shapefiles (Which I want to weigh differently) that I guess I now need to reclassify.   I assume I will have to turn these polygons and points into rasters as well...
0 Kudos
JaredReid1
Emerging Contributor
I have now converted my polygons into rasters and then reclassified them.

My four layers are now reclassified with the values of "4" (4 will be my thou shall not pass number) 

I then reclassified my reclassified DEM with the values of 1,2,3 and 4.   (4 being the high elevation to avoid)

---

I then read that you need to merge these together by using the raster calculator and adding these values together. 

When I do, it generates a calculation raster with a High: 2147483647 and a low of -2147483648!

What happened to my neat and tight 1,2,3,4 values??
0 Kudos
MarkBoucher
Honored Contributor
Looks like my first step is to take my very large(geographically) DEM and clip it to just the area I want.

You can also limit the area your will process using the Geoprocessing>Environments...>Processing Extents and set the processing extents to equal some feature class that just covers you project area.
0 Kudos
MarkBoucher
Honored Contributor
I then read that you need to merge these together by using the raster calculator and adding these values together.


Have you tried the Data Management Tools.tbx\Raster\Raster Dataset\Mosaic command? This doesn't add them, it has several options such as use the value of the last raster listed. This will leave your values alone.
0 Kudos
JaredReid1
Emerging Contributor
Have you tried the Data Management Tools.tbx\Raster\Raster Dataset\Mosaic command? This doesn't add them, it has several options such as use the value of the last raster listed. This will leave your values alone.


Thank you! That solves that portion of my question.
0 Kudos
Robert_LeClair
Esri Esteemed Contributor
Jared -

One way to learn more about the least cost path workflow is to register for the Distance Analysis using ArcGIS 10 web course.  It goes into straight line distance and least cost path analysis workflows that may assist you.  I teach the now retired Spatial Analyst class for Esri - feel free to email at rleclair@esri.com if you have specific questions.

Regards,

Robert LeClair
Esri-Denver
0 Kudos
JaredReid1
Emerging Contributor
Jared -

One way to learn more about the least cost path workflow is to register for the Distance Analysis using ArcGIS 10 web course.  It goes into straight line distance and least cost path analysis workflows that may assist you.  I teach the now retired Spatial Analyst class for Esri - feel free to email at rleclair@esri.com if you have specific questions.

Regards,

Robert LeClair
Esri-Denver


Thanks for the reply Robert.  Do they offer that course for Arcmap 9.3?
0 Kudos
JaredReid1
Emerging Contributor
Have you tried the Data Management Tools.tbx\Raster\Raster Dataset\Mosaic command? This doesn't add them, it has several options such as use the value of the last raster listed. This will leave your values alone.


Following up question.

Now that my rasters are merged. 

How does my Cost Weight know that 4 is bad and 1 is good and not vice-versa?
0 Kudos
Robert_LeClair
Esri Esteemed Contributor
To my knowledge, the web course was written for ArcGIS 10.0 but the concepts still apply at 9.3.x.

With regard to 1=good and 4=bad, it's a human interpretation versus a computer interpretation.  When you use the Weighted Overlay tool to create your cost surface, you have the option to create an evaluation scale of any form you wish.  It's up to you to determine what's "bad" and what's "good."  The key is to be consistent through the entire workflow.  Make sense?
0 Kudos