makepath / xarray-spatial

Raster-based Spatial Analytics for Python
https://xarray-spatial.readthedocs.io/
MIT License
846 stars 85 forks source link

Is there a way to get distance of shortest path from A* #793

Closed d3netxer closed 7 months ago

d3netxer commented 9 months ago

Reason or Problem

I ran the Pathfinding_Austin_Road_Network notebook and I was wondering if there is a way to get the distance of the shortest path? I am noticing that path finding algorithm returns a 2D array.

brendancol commented 7 months ago

@d3netxer nothing at the moment to get the distance of the route, but you could get an approximation by counting non-null elements by resolution.