I am calculating the shortest path in a numpy array which was converted from a raster (.tif).

I have a list representing a path like [(1,3),(2,3)(3,3)].

How can I transform this into a polyline in a shapefile?

Do I have to use rasters for latitude and longitude and then look up the values at the positions of the path elements or is there an easier solution?

  • Which python library do want to use to create the shapefile?
    – BERA
    Sep 14 '18 at 7:53
  • I am not dependant on any specific library
    – niaR
    Sep 14 '18 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.