Select to view content in your preferred language

Bug in the Distance Accumulation tool - direction raster

832
3
09-06-2024 10:41 AM
ThomasDilts
Frequent Contributor

Hi,

I'm running ArcGIS Pro 3.2.1 on a Windows 10 Enterprise 10.019045 with an i7, 3.6 Ghz, 16 Gb RAM. When I run the Distance Accumulation tool in the geoprocessing tools (Spatial Analyst Toolbox) I get an output map that is flipped where north is south and south is north (see attachment). I confirmed that the raster values are circular from south 180 being 0 instead of 180. This same problem happens in the deprecated Euclidean Direction tool.  Is this is a known bug or is there some setting that I have to set now to make north 0?  I've run Euclidean Direction for years and have never seen this issue.  Thoughts?

0 Kudos
3 Replies
ThomasDilts
Frequent Contributor

I should add that the top of the image on my map is north and that is a DEM of Lake Tahoe.

0 Kudos
ThomasDilts
Frequent Contributor

I submitted this to Esri as a bug (case number is 03717844.)

0 Kudos
ElizabethGraham
Esri Contributor

Hi @ThomasDilts,

From your screenshot, I do not see what the bug is.  Maybe this information will help.

In your example, suppose the source is a town.  The resulting direction raster has the directions to the town for every location. Therefore from your screenshot, the results look correct.  Cells to the north of the source should have a value representing the south because that is the direction back to the source.

The Euclidean direction output raster contains the azimuth direction from each cell to the nearest source. Euclidean direction assigns the direction of each cell in degrees to its nearest source. A 360-degree circle or compass is used, with 360 being to the north and 90 to the east; the remaining values increase clockwise. The value 0 is reserved for the source cells.

In Distance Accumulation, if cost is not introduced into the analysis then the Back Direction Raster is the same as the Direction raster from the Legacy Euclidian tool.  However, if cost is introduced the values are still direction in degrees but, instead of pointing to the nearest source, the direction identifies the next cell along the shortest path back to the cheapest source while avoiding barriers if specified.  Like Euclidean Direction the range of values is from 0 degrees to 360 degrees, with 0 reserved for the source cells. Due east is 90, and the values increase clockwise (180 is south, 270 is west, and 360 is north).

I hope this helps.

Thanks,

Liz 

Product Engineer on the Spatial Analyst team

0 Kudos