<div>Does that mean a different vrt file or simply reopen the file to create a gdal object in each process. Because I'm reopening the vrt file in each thread</div><div><br></div><div><br><div class="gmail_quote"><div>On Thu, 16 Mar 2017 at 17:23, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal" class="gmail_msg">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">On jeudi 16 mars 2017 17:16:20 CET Grégory Bataille wrote:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> Hello all,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> Reaching out to the community caused I have failed for the past few days.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> </p>
</div><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal" class="gmail_msg"><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> *short version*, I'm trying to multithread the gdal2tiles utility, and I'm</p></div><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal" class="gmail_msg">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> getting this</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> Generating Base Tiles:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> ERROR 1: LZWDecode:Wrong length of decoded string: data probably corrupted</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> at scanline 256</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> ERROR 1: TIFFReadEncodedTile() failed.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> ERROR 1:</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> /Users/gbataille/Downloads/Project_58704_transparent_mosaic_group1.tif,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> band 1: IReadBlock failed at X offset 1, Y offset 0</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> ERROR 1: GetBlockRef failed at X block offset 1, Y block offset 0</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> ERROR 1: gba.vrt, band 1: IReadBlock failed at X offset 0, Y offset 0</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">> Any idea?</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg"> </p>
</div><div style="font-family:'Sans Serif';font-size:9pt;font-weight:400;font-style:normal" class="gmail_msg"><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">Yes, you need one dataset object per thread . Dataset objects cannot be used simultaneously from several threads.</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">Even</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">-- </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg">Spatialys - Geospatial professional services</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px" class="gmail_msg"><a href="http://www.spatialys.com" class="gmail_msg" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">Greg</div>