[gdal-dev] Multithreaded GDAL

Martin Chapman chapmanm at pixia.com
Mon Dec 24 09:17:41 PST 2012


Yehiyam,

 

You can read from different threads concurrently if each thread has its
own, unique GDALDataset handle.  That means call GDALOpen() from each
thread on the same file path.  Writing should be done from one thread.  

 

Best regards,

Martin

 

 

From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Livneh Yehiyam
Sent: Monday, December 24, 2012 7:04 AM
To: gdal-dev
Subject: [gdal-dev] Multithreaded GDAL

 

Hi all

I've tried searching for an answer online, but the most recent information
I found is more than 3 years old.

We have method that reads pixels from one data-source, performs some
manipulation, and writes it to another.

Reading is done with the Band.ReadRaster C# API. 

Writing is done with the Band.WriteRaster c# API.

 

I'd like to process several data-sets in parallel on multiple threads. 

>From what I could understand from
http://trac.osgeo.org/gdal/wiki/FAQMiscellaneous and other online sources,
"no threads can be writing to GDAL while others are reading".

Has this changed in recent versions? Is it now possible to read and write
on different threads (from different data-sets)?

 

Thanks

Yehiyam

  _____  

This message (including any attachments) issued by RAFAEL- ADVANCED
DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains confidential
information intended for a specific individual and purpose, may constitute
information that is privileged or confidential or otherwise protected from
disclosure. If you are not the intended recipient, you should contact us
immediately and thereafter delete this message from your system. You are
hereby notified that any disclosure, copying, dissemination, distribution
or forwarding of this message, or the taking of any action based on it, is
strictly prohibited. If you have received this e-mail in error, please
notify us immediately by e-mail mailto:lawraf at rafael.co.il and completely
delete or destroy any and all electronic or other copies of the original
message and any attachments thereof. 

  _____  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121224/7406612c/attachment.html>


More information about the gdal-dev mailing list