<div dir="ltr">ChiefDan,<div><br></div><div>If I understand the problem correctly...</div><div><br></div><div>If you get the OGRGeometry of your line string (get the WKT from that or somehow turn into an array or list that is easy to work with) you will have all the points in order along the line.  Then, you'll need to find your initial point of interest.  Once you find that match you can traverse up or down the array.</div><div><br></div><div>matt</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 24, 2015 at 5:09 AM, ChiefDan <span dir="ltr"><<a href="mailto:ChiefDan@gmail.com" target="_blank">ChiefDan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, I've experimented with that library and actually asked a follow up<br>
question here about it. To properly use it, I need to prepare the layer in<br>
the manner I am asking about.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-C-Api-create-new-line-segments-from-point-layer-tp5195061p5195113.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/GDAL-C-Api-create-new-line-segments-from-point-layer-tp5195061p5195113.html</a><br>
<span class="im HOEnZb">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br></div></div>