Re: [gdal-dev] Reading a shapefile containing multi-parts Polyline from OGR (C++ API)

2023-10-16 Thread Roland Baviere via gdal-dev
// do whatever with that LineString > } > } > > > On Mon, 16 Oct 2023 at 12:14, Roland Baviere via gdal-dev < > gdal-dev@lists.osgeo.org> wrote: > >> Hi all, >> >> I hope this e-mel finds you well. >> >> I am t

[gdal-dev] Reading a shapefile containing multi-parts Polyline from OGR (C++ API)

2023-10-16 Thread Roland Baviere via gdal-dev
Hi all, I hope this e-mel finds you well. I am trying to read a shapefile layer from OGR from a C++ application following the tutorial found here: https://gdal.org/tutorials/vector_api_tut.html#reading-from-ogr We have difficulties with a layer containing PolyLines with several parts. The pre-

Re: [gdal-dev] Writting a shapefile from C++ API: case a field of the OFTReal type

2023-10-14 Thread Roland Baviere via gdal-dev
Hi all, I've just found that a declaration of this type solved my problem: OGRFieldDefn oField( "Val dbl", OFTReal ); // oField.SetWidth(64); I have no idea why. I suggest that the tutorial is updated to reflect this (common) case. Kind regards, Roland Le sam. 14 oct. 2023 à 16:12, Ro