[gdal-dev] R: Problem using ogrlineref

積丹尼 Dan Jacobson jidanni at jidanni.org
Fri Jul 1 00:10:17 PDT 2016


I am trying to use the ogrlineref command.
I can't even understand its man page.
Maybe it only works on shapefiles.
Maybe it only Seg Faults.

How can I get the locations of the kilometer markers given only this KML:

<Placemark>
  <name>zaokeng main road 中45市道</name>
  <LineString>
    <tessellate>1</tessellate>
    <coordinates>120.86817,24.17922,0.0 120.86816,24.17922,0.0...
  </LineString>
</Placemark>

Let's say put the output into a new KML file.

OK maybe I need these redundant starting and ending points too:
<Placemark>
  <name>Start</name>
  <Point>
    <coordinates>120.86817,24.17922,0.0</coordinates>
  </Point>
</Placemark>
<Placemark>
  <name>End</name>
  <Point>
    <coordinates>120.86696,24.16733,0.0</coordinates>
  </Point>
</Placemark>

Anyway the man page is just a mishmosh to me.

Maybe if you show me how to do it, then I can figure out what "reper"
points are. They certainly aren't English. Maybe I don't need "reper"
points. Maybe I am trying to produce "reper" point.
Nobody knows.


More information about the gdal-dev mailing list