<div dir="ltr">I think something is wrong in you vrt file.  The number of pixels seems extremely high 2147483647 x<span style="font-family:Calibri,sans-serif"> </span>2147483647.  This would result in a huge geotiff ~ 4611686014132420609 bytes.  A regular geotiff is limited to 4 GB in size.  This can be increased with Big Tiff support.  </div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 1 April 2014 03:31,  <span dir="ltr"><<a href="mailto:Moses.Gone@t-systems.com" target="_blank">Moses.Gone@t-systems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div>
<font face="Calibri, sans-serif">
<div>Hi everyone,</div>
<div>I am getting this weird error when I try to convert a vrt to a tif. </div>
<div> </div>
<div>Some context: We are tiling a set of tifs(in a list file). First we generate a vrt from the list. Then we assign a projection on the generated vrt using gdaltranslate. We then clip the output using gdalwarp applying a clipping at the same time to the desired
BBOX(This is achieved using the –te option). In the warp operation we also specify the target SRS(using the –t_srs option). Lastly we tile using our customized gdal_retile.py. All is fine with the projection and clipping, but the resultant tiles are empty-no
data just white images.</div>
<div> </div>
<div>So I tried to backtrack my steps, to check at what point is the data being lost. Generation of the VRT works fine. However, performing gdaltranslate to assign the source SRS on the VRT result into this error:</div>
<div> </div>
<div style="padding-left:35pt">bash-2.05$ gdal_translate -of GTiff ffm_dtk200_wdd.vrt test.tif</div>
<div style="padding-left:35pt">Input file size is <a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>, <a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a></div>
<div style="padding-left:35pt">0ERROR 1: GTiffCreateCopy():No space for strip arrays</div>
<div style="padding-left:35pt">ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field</div>
<div style="padding-left:35pt">ERROR 1: MissingRequired:TIFF directory is missing required "StripOffsets" field</div>
<div> </div>
<div>I tried to also convert to AAIGrid format, thinking that something is wrong converting to Tiff, but also got this error:</div>
<div> </div>
<div style="padding-left:35pt">bash-2.05$ gdal_translate -of  AAIGrid ffm_dtk200_wdd.vrt test3</div>
<div style="padding-left:35pt">Input file size is <a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a>, <a href="tel:2147483647" value="+12147483647" target="_blank">2147483647</a></div>
<div style="padding-left:35pt">0ERROR 1: CPLMalloc(-4): Silly size requested.</div>
<div style="padding-left:35pt"> </div>
<div style="padding-left:35pt">ERROR 1: ffm_dtk200_wdd.vrt, band 1: The buffer into which the data should be read is null</div>
<div style="padding-left:35pt">Segmentation Fault</div>
<div> </div>
<div>Other tiling jobs following a similar method, with different source data works fine though. Could the problem be with the data? If so how comes it worked before?</div>
<div> </div>
<div>Regards,</div>
<div>Moses</div>
<div> </div>
</font>
</div>

<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>