I need to calculate the least cost path for a water pipe. The layers I have now are land use, slope, soil type and protected natural parks. Now my teacher has given me the prices of building a water pipe. For example: the soil type layer consists of Sand, Clay, Lime, Loam and Other. Sand and Clay are €10 for each meter and Lime and Loam are €30/m. The Land Use layer has 4 categories with different prices for each category. And the slope is based on % of the total price. Protected natural parks is forbidden.
Now my first question is if I can use Weighted Overlay for this. I have completed Esri's Spatial Analyst tutorial. But I can't see how I can use these prices for this.
Instead I thought of another method, by creating a cost raster. This cost raster includes all the used layers, but these layers all must have prices added. But I tried this for the soil type layer and I'm stuck now. I added a new field to the layer with the name "Costs". I used the Field Calculator to replace the soil types in the field "Soil" to the price that belongs to the soil type. For example Replace( [LETTER],"BLb/Ldh/Ldd/Ld/BLd/AHl/Lnd/BLn/Lh/ABl/Ln/BLh","30"). BLb/Ldh/Ldd/Ld/BLd/AHl/Lnd/BLn/Lh/ABl/Ln/BLh stands for Loam, I reclassified this. So I tried to place 4 of these Replace functions behind each other. But I get the same error everytime: 000539: invalid syntax (, line 1). I'm probably doing something really wrong, but I couldn't find anything similar on the internet.
My second question is therefore how I could get this tool running.
I'm not really skilled in ArcGIS yet.