On Thu, 12 Sep 2019 at 09:50, Ahmet Temiz <[email protected]> wrote: > > I have two vectors of vx-values and y_values > > like vx { 1.1,2.2 ....} and vy { 3.3,55...} > > How can I ogrLinestring from these two vectors using GDAL C++ ?
If you browsed the API reference of OGRLineString and its base class OGRSimpleCurve, https://gdal.org/doxygen/classOGRSimpleCurve.html, you would have figured it out in no time: OGRLineString line; for (...) line.addPoint(vx[i], vy[i]); Best regards, -- Mateusz Loskot, http://mateusz.loskot.net _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
