I stumbled over a problem which I can't figure out myself so maybe you can help me..

I have a line going from 0 to 100% of its length. On this line I have 1:n lines with different information and they differ in its length (e.g. one from 20 to 80%; one 35-50% and so on). What I want is a segmentation of the line containing the information of each of the "sub"-lines. In the example I would get 5 segmentations. (0 - 20 - 35 - 50 - 80 - 100). I have also the start and end percentage of each line (if this helps in any way).

example data (.shp) is here

  • Specify in what software you work, for example QGIS, ArcGIS, PostGIS, etc. – Cyril Jan 16 at 18:20
  • I work with ArcGis, QGIS and PostGIS, I don‘t mind which software will solve the problem.. – gisgsi Jan 17 at 5:25
  • the link will be useful to you postgis.net/docs/ST_LineSubstring.html – Cyril Jan 17 at 9:45
  • Note that the function works only with LINESTRING, that is, first convert MULTILINESTRING to LINESTRING, using the ST_LineMerge function... – Cyril Jan 17 at 10:01

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.