makepath / xarray-spatial

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

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

Closed d3netxer closed 5 months ago

d3netxer commented 7 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 5 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.