[gdal-dev] Error with ogrlineref

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Fri Oct 31 05:57:45 PDT 2014


Hi,

I noticed a tool that I had never tried: http://gdal.org/ogrlineref.html

I did not understand the meaning of all the options so I just copied the
example command but it failed for me. 


C:\temp\linref>ogrlineref -create -l line.shp -p references.shp
-pm dist -o parts.shp -s 10 -progress
Unsupported geometry type Line String for path

What's wrong with Line String? This is how my source data (-l) looks:

C:\temp\linref>ogrinfo line.shp
INFO: Open of `line.shp'
      using driver `ESRI Shapefile' successful.
1: line (Line String)


About the usage, should I understand that this utility cannot split lines or
insert milestones on lines by a given distance but I must create the point
file of milestone with some other tool and show that for ogrlineref with the
-p parameter? For my trial I created such point file with OpenJUMP PLUS.

-Jukka Rahkonen-



More information about the gdal-dev mailing list