Hello,
given an opened GDAL dataset, is it possibile to perform
gdalrasterio calls for each band in a dedicated thread per band in a
thead-safe way?
E.g. I have a raster image with 3 band (r,g,b). Since I have 4 core I would
like to I run a thread for a band r, one for band g and one for
Le mardi 08 février 2011 22:41:50, Stefano Moratto a écrit :
> Hello,
> given an opened GDAL dataset, is it possibile to perform
> gdalrasterio calls for each band in a dedicated thread per band in a
> thead-safe way?
> E.g. I have a raster image with 3 band (r,g,b). Since I have 4 core I
Thanks for the suggestion,
I have to read png from openstreetmap. I'm trying to render an A4 paper size
sheet so I have a lot of data to move.
It may be better to divide the area to be read in blocks and to give to each
thread a block. Foreach block a thread should read all the bands.
Probabilly
Le mardi 08 février 2011 23:07:36, Stefano Moratto a écrit :
> Thanks for the suggestion,
>
> I have to read png from openstreetmap. I'm trying to render an A4 paper
> size sheet so I have a lot of data to move.
> It may be better to divide the area to be read in blocks and to give to
> each threa
Le mardi 08 février 2011 23:33:39, Stefano Moratto a écrit :
> The openstreet data is a virtual image composed by several tiles at a given
> zoom level, each tiles is a 256x256 png, so I think if a thead read a
> 256x256 block i will access only a given png.
Yes of course reading different images
Thanks for the suggestion but I'm developing a Win32 app.
I will take in consideration your previous answer because the app can read
images from other sources.
Regards,
Stefano
--
Dr.Eng. Stefano Moratto
stefano.mora...@gmail.com
stefano.mora...@csiat.it
http://www.csiat.it - Traffic Optimizatio