fahadjahangir Posted August 8, 2017 Report Share Posted August 8, 2017 I want to split a line shapefile into segments of equal length, let say into length of x meters each. Is there a way to do that in python without using QGIS? Quote Link to comment Share on other sites More sharing options...
jorrarro Posted August 8, 2017 Report Share Posted August 8, 2017 You can import shapefiles using Fiona and do all sorts of modifications with Shapely. For more information, look here: https://sgillies.net/2010/07/06/shapely-recipes.html Quote Link to comment Share on other sites More sharing options...
rahmansunbeam Posted August 8, 2017 Report Share Posted August 8, 2017 (edited) I see this answer didn't worked for you https://gis.stackexchange.com/questions/250784/splitting-a-line-shapefile-into-segments-of-equal-length-in-python Then try spacing the points at specified distance and then split the line https://gis.stackexchange.com/questions/63201/how-to-create-points-in-a-specified-distance-along-the-line-in-qgis https://gis.stackexchange.com/questions/57171/how-to-split-line-at-a-specified-distance-and-getting-coordinates-of-start-and-e https://gis.stackexchange.com/questions/203048/split-lines-at-points-using-shapely https://gis.stackexchange.com/questions/210220/break-a-shapely-linestring-at-multiple-points Edited August 8, 2017 by rahmansunbeam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.