With some formats sizeof, fseek and ftell can be most useful
> On Jul 7, 2023, at 5:33 AM, Abel Pau <a....@creaf.uab.cat> wrote: > > Hi, > I would like to know if when we use the code of GDAL to program a driver (or > whatever) in vectors (so, ogr) we can assume that we can know the number of > elements we are going to import in any way or it would be possible not > knowing that until NextFeature is empty (or something like that). So, there > is any way to obtain this number of elements without doing a while? And in > case of multielements its possible to know how many parts are there in total? > I need that to write my format (I don’t explain the details cause I don’t get > you bored :) ) > > If anyone know that I’d appreciate an answer. Thanks in advance. > > Abel. > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev