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.
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 thetravel_time
method from theRasterLayer
using the startingrows
andcols
from the rasterized layer.