[gdal-dev] Multi-threaded GDALPolygonize C++

Even Rouault even.rouault at spatialys.com
Mon Jun 26 10:04:34 PDT 2023


Shayan,

make sure to read https://gdal.org/user/multithreading.html . I suspect 
you use the same GDAL Dataset or RasterBand object from multiple 
threads, which isn't allowed

Even

Le 26/06/2023 à 18:38, Shayan Ghofrany a écrit :
> Good afternoon everyone,
>
> I'm new to the mailing list, so if my question is not formatted 
> correctly please let me know.
>
> I am attempting to polygonize a raster file by first chunking it into 
> smaller pieces and then using multi-threaded to polygonize those 
> chunks simultaneously. I often come across Disk I/O errors which makes 
> me think that what I want to do is not necessarily how GDALPolygonize 
> should be used. I was wondering if anyone has attempted something 
> similar and whether there are public examples available that I could 
> look into.
>
> Thanks for your time,
>
> Shayan Ghofrany
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list