Open-Source-Spatial-Clean-Cooking-Tool / OnStove

This repository contain the general code for the Open Source Spatial Clean Cooking Tool OnStove
MIT License
7 stars 8 forks source link

`travel_time` method from the `VectorLayer` fails for lines and polygones #378

Open camiloramirezgo opened 1 year ago

camiloramirezgo commented 1 year ago

The method only works for point data, as it looks for the x and y coordinates of the data to find the rows it overlaps in the friction layer. This can be solved by changing the approach and rasterizing the vector data firsts using the friction layer as a template. Then we run the travel_time method from the RasterLayer using the starting rows and cols from the rasterized layer.