Select to view content in your preferred language

ArcGIS Pro 2.5: The “back link raster” obtained from “cost distance” appears to contain incorrect values for some of its cells particularly around the source point,

1664
10
06-23-2020 09:33 PM
JamalNUMAN
Legendary Contributor

ArcGIS Pro 2.5: The “back link raster” obtained from “cost distance” appears to contain incorrect values for some of its cells particularly around the source point,

 

For example, in the screenshot below, the red color around the source point is expected to indicate moving “upper-left” but not “up” in order to best approach the source point!

 

What could be the issue here?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
10 Replies
DanPatterson
MVP Esteemed Contributor

How cost distance tools work—Help | Documentation 

From your related question, the cost calculation methods for diagonal and adjacent cells are described here


... sort of retired...
JamalNUMAN
Legendary Contributor

I moved the source point to the center of cell # 24. I reviewed the output Back Link raster and found out that the description of the colors doesn’t match the correct direction the cell needs to go in order to approach the source point.

 

For example, cell # 25 needs to move to “left” but not “upper left”.

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
DanPatterson
MVP Esteemed Contributor

measure to the cell center not the upper corner edge


... sort of retired...
JamalNUMAN
Legendary Contributor

Do you mean that the colors of the cells surrounding the source point are correct? The description of colors don’t match the best way the neighboring cells should approach the source point

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
DavidPike
MVP Notable Contributor

It really looks like you're moving the 'source' point but not recomputing the cost distance, or using the old output, if it's not set to override it will output something like BackLink_1

JamalNUMAN
Legendary Contributor

Let me then remove the source point to the original location as in my first post (which is at the upper left corner of cell#24)

 

Are the directions that appear for the cells of the “back link” correct?

 

The data is attached

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
DanPatterson
MVP Esteemed Contributor

Notice that your source cell (in gray) is numbered 34, Your point is identified as being that cell, so the cell 24 is indeed Up (7)


... sort of retired...
JamalNUMAN
Legendary Contributor

The source point is located the point of intersection of cell#23, 24, 33, and 34. Why is it considered as if at the center of cell#34?

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
DanPatterson
MVP Esteemed Contributor

when the raster was formed, it was assigned that location because of the way you set the extent of the raster.  If you wanted the origin to be located in the center of the cell you should have accounted for the potential 1/2 cell size translocation to ensure that the point was in the center.

Perhaps that is the source of your confusion.  when looking at the backlink raster you have to look at the source "cell" and not the original point


... sort of retired...