# Questions tagged [cost-path]

A raster-based ArcGIS geoprocessing tool that calculates the least-cost path from a source to a destination over a cost surface.

175 questions
Filter by
Sorted by
Tagged with
11 views

### Cost distance which uses a sum of both positive and negative values

I am attempting to create a cost distance raster which uses a cost surface of both positive and negative values. I understand that I could correct for negative values by replacing them with a value of ...
27 views

### Calculating true distance of cost distance raster using ArcMap

I have calculated cost distance using a raster unrelated to path distance (a heat index) but would like to also measure the true path distance of those 'routes.' Is there a way to calculate such? If I ...
23 views

### sf polygon to raster workflow to calculate least cost distance with gdistance in R

I need to calclulate the shortest distance from a set of points to other sets of points in a marine area. Travelling on land must not be possible so I understand I need to calculate the least cost ...
8 views

### How to exlude raster cell from the cost surface estimation?

I use ArcGIS 10.1, I am trying to generate a cost surface (Path Distance tool) in order to generate a least-cost path. The problem is that I would exclude a specific area of the raster from the ...
24 views

### Multiple least cost paths - automated labeling of the calculated paths with formula starting-point_destination-point?

I am using r.cost and r.drain to calculate a least cost path, using a single friction layer (slope), in a set of points, from each single point to the other. I would like to use the same approach on a ...
22 views

### Reclassify slope raster

I want to reclassify a slope raster as part of Least Cost Path Analysis, but I'm a little bit confused about the reclass rules. My rules look like this at the moment (numbers left are degree): 0 ...
32 views

### Least cost path: single source point, multiple target points

I have a single source point in EPSG:3857, and a set of points, also in EPSG:3857. I calculated a slope layer from SRTM (in EPSG:3857) in the extent of the complete set of points. I would like to use ...
71 views

### Least Cost Path Analysis in QGIS?

For my Bachelor's thesis I try to reconstruct a road betweeen two ancient cities. One method I'd like to try is least cost path analysis with QGIS. I've worked with QGIS before, but mostly only ...
44 views

### Average width of a a zone [duplicate]

How can I get the average width of a region or inside a curve? or How can I calculate minimum,maximum, and average width of an irregular polygon? I have attached a figure, I want to know how can I ...
53 views

### Which layer for least cost analysis?

I'm new to least cost analysis. I have a DEM-layer of a region and I want to know what's the least cost path from a to b. Do I have to use the DEM layer to calculate that? I also have a hillshade ...
50 views

### Least Cost Path in QGIS: Plugin or SAGA or GRASS?

I downloaded a SRTM file and followed this tutorial and now I have a hillshade layer and a color layer. It looks like this. I want to calculate the least cost path between p1 and p2. But I'm not ...
62 views

### Which layer for least cost path analysis

New QGIS user here, so maybe it's kind of a stupid question. I want to calcualte the least cost path between two points but I don't know which layer to use. I have two layers, one is a hillshade layer ...
30 views

### Least cost path creating unwanted straight lines

I’m very much a beginner with GIS and I’m stuck creating a least cost path. Basically, I’m trying to highlight which river valleys would most likely be flooded in the event of a volcanic eruption ...
82 views

### Cartographic Depth-To-Water method using Cost/Path Distance

I'm having trouble understanding the method for creating a cartographic depth to water index and seek some guidance. I'm using ArcGIS Pro 2.3, but equally happy with ArcMap desktop. The method is ...
34 views

I am calculating shortest bath between two points. I need to add an additional feature eg. air toxicity in my calculation, so that the shortest path calculated takes into account the air toxicity and ...
37 views

### How to calculate / determine travel *time* within a cost-distance model?

Here's my problem: I have a network of trails between locations scattered across the eastern US (think hiking trails, on foot, not vehicular travel). I would like to calculate on-foot travel time (...
18 views

### How to join the Least Cost Path with Optimal Destination?

I have the following problem which can be solved in 2 stages: The first stage is to calculate the least cost path for transporting the produce from a pixel on the field to the edge of the road, for ...
20 views

### Merging layers in cost distance analysis to account for other variables?

For example, say I was rafting down a river but there was a small bridge in the way. That would significantly change the difficulty but not necessarily stop the progress. Is there a way for me to ...
26 views

### How to take number of states crossed into consideration while calculating the least cost path between two cities?

I want to create the least cost path between two cities. I have a cost raster that I can use to create a cost path between two cities. However, a new condition is that the path also should take into ...
21 views

### Running Cost Paths with Overlapping Points?

I am running cost paths on a data set with 60k points which represent farms. About a third of these points have the exact same coordinate (points can often represent village centers where the farm ...
119 views

### Calculate cell distance between cells

I want to calculate the cell distances between all cells within a feature class grid. Exactly the same as the game Minesweeper. I have included an example below. The original data contains 11000 cells ...
77 views

### Cost distance tool to figure out shortest distance over water between 2 points

I have multiple points in a bay and I need to figure out the distance of each point to the nearest inlet, without going over land. I have been told to use the Cost Path or the Cost Distance tool but ...
38 views

### Least cost path from visibility

I use ArcGIS 10.1 and I am dealing with viewshed and least cost path analysis. I would like to generate a path on the basis of a cost surface taking into account the viewshed data as indicated in the ...
61 views

### Slope rasters - different results from different tools

I'm calculating Least Cost Path (LCP) within QGIS 2.18. The first step is to produce the slope raster from the DEM. Using r.slope in GRASS produces excellent results where I can go on and finally ...
115 views

### Finding Least Cost Corridor in QGIS? [duplicate]

Does the ArcGIS Pro feature "least cost corridor" have an equivalent module or workflow in QGIS? http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/creating-a-least-cost-corridor.htm
45 views

### Blocking areas from consideration when running r.drain to calculate walking path from cost map?

r.drain was obviously originally intended to be used for drainage catchment, which is a problem when trying to find a least-cost walking path, as r.drain is happy to send you walking down a riverbed. ...
532 views

### Finding shortest path without barriers using the sf package in R

Say I have three ships near PNG in the pacific. I want to know the shortest path between all three, while not going aground. This can be done with the ArcGIS function "cost distance" and "shortest ...
50 views

### Using Path Distance to Calculate Total Accumulated Cost from Source to Destination?

I am looking to calculate the total accumulated cost associated with traveling from a source point to a destination point (please see the included figure below, green dot = source, red dot = ...
73 views

### Whitebox's cost distance tool stuck in endlesss loop

Cost distance function from WhiteboxTools (v.0.11.0) gets stuck in an endless loop after execution. The inputs are 8-bit unsigned interger GeoTIFFs. The source raster has values 1 and Null (size: 16 ...
327 views

### How can I estimate a Least Cost Path in Google Earth Engine?

I'm using Google Earth Engine to estimate walking time based on slope, using the Google tutorial and this example based on a DEM. My code actually runs, but I don't know what units the output raster ...
136 views

### Finding least cost path to diffuse resource using ArcGIS Pro?

I am trying to solve a variant of the least cost path analysis problem (http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/creating-the-least-cost-path.htm) where instead of finding the ...
52 views

### Performing COST PATH in ArcMap?

I have a tiff raster dataset serving as cost raster, created a start point and destination point serving as feature source data for performing COST PATH in ArcMap 10.4. Since the tiff raster layer ...
61 views

### More than one iteration least cost paths from everywhere to everywhere in ArcGIS Desktop?

I am working on a project with a colleague and we are looking for a way to automate the whole process of generating least cost paths from everywhere to everywhere in ArcGIS' ModelBuilder. We have a ...
170 views

### Tobler's hiking function: resulting walking speed in KmH or m/s?

I was reading some literature dealing with least-cost path calculation and accumulate cost-surface generation using the Tobler's hiking function. I was reading this literature since I am trying to ...
90 views

### Executing CostDistance Function in ArcPy gives Error 999999?

I am attempting to create a least cost path using ArcPy for automation. I have the starting/end points and cost surface raster already assembled, so I am just using ArcPy to automate through my ...
24 views

I am trying to use cost path analysis to create a least cost path from ports around the UK to various offshore locations. To do this I have created a cost raster grid with values of 0 for land and 1 ...
88 views

### Using iterator in a cost distance analysis model with multiple destinations

I am building a cost distance model to find three different paths. Each has his own start and end point. So there are three start points with each an end point belonging to it. I want to use an ...
83 views

### Cost Distance Path ArcPy Code Failure: Error 000865

I am attempting to run a cost distance analysis where my list of source points (roughly 100 points) corresponds to the same number of destination points. Instead of running the cost distance analysis ...
38 views

### Using the same backlink and cost-distance rasters for different source/destination points over the same geographic region [closed]

I am conducting a cost distance analysis for many points on the same map (roughly 350 sets of source/destination points, creating 350 different cost distance paths in total). The map is large, at ...
182 views

### Tobler's Hiking Function

I am trying to use the tobler's hiking function to estimate the distance/time from an origin to destination points. The contour interval is 500 but I do not know how to interpret the results. Does it ...
32 views

### Mosaic to Raster Tool in ArcGIS Darkening Grayscale Raster Output

I stitched roughly 20 raster files together using the "Mosaic to New Raster" tool. Once these raster files were combined, though, the new output raster seemed to "darken"- the fine details of the ...
177 views

### Open source alternative to Linkage Mapper & ArcGIS [closed]

I'd like to calculate least cost paths between fragments using a cost raster I created based on habitat suitability values. I saw that most people use Linkage Mapper, but I don't have access to ...
377 views

### how to calculate cumulative cost of movement, accounting for wind direction, in R?

I am trying to reproduce the calculation of the duration of sail-powered navigation as described in an academic article (http://www.tandfonline.com/doi/full/10.1080/15230406.2017.1403376), but using R ...
250 views

How is it possible to draw a path, which follows a given grade or a trail grade / slope relation? I know least cost path where I was able to calculate least cost path using the slope and avoid steep ...
23 views

### How to assign costs for turns on GRASS vector network analysis?

I would like to get a better understanding of how to assign costs for turns when creating a least-cost path with GRASS network tools, basically because I don't want any line to be used twice for ...
66 views

### How to create least-cost path with PyQGIS that penalizes sharp edges and uses each line only once?

I would like to connect user-selected nodes via a line layer, in which each segment has a certain cost value. The lines should be connected via the least-cost path. So far, I am using the module ...
44 views

### ArcGIS OG Cost Matrix not iterating over all origins

I am working with a large data set of property information (500K+ observations), trying to create a cost matrix to find the drive time of all points to downtown Houston. I have set my origins as the ...
38 views

### Assign different values to each zone, ArcGIS 10

Is it possible to assign different values to each zone. The value would be decimal. 100==> 4.97 200==> 5.90 300==> 6.01 ..ect... 1000==> 9.64 or somehow change value with cost raster. I have DEM ...