[gdal-dev] A question of eficiency

Norman Vine nhv at meganet.net
Fri Jul 7 03:30:43 PDT 2023


With some formats sizeof, fseek and ftell can be most useful 


> On Jul 7, 2023, at 5:33 AM, Abel Pau <a.pau at 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 at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev




More information about the gdal-dev mailing list