<div dir="ltr">I'm guessing you're on a 32-bit windows system. For all practical purposes this is an "out of memory" error. In order to process the data the GDAL writer needs to create at least one raster that handles your bounds / resolution * sizeof(data_type). Windows is reporting that this memory is unavailable. If you going to process large amounts of data, you should consider using a 64-bit system.<br><br>Other than this, I have no ideas. The GDAL writer has been used successfully with very large datasets and rasters, so I'm not sure what else the problem might be.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 3, 2021 at 2:25 AM Peter Lim <<a href="mailto:peter.lim@gpslands.com">peter.lim@gpslands.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-SG"><div class="gmail-m_8267777599154108019WordSection1"><p class="MsoNormal"><span style="color:rgb(31,73,125)">Hi,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"> </span><span style="color:rgb(54,95,145)">I’m trying to generate a GeoTiff image from a LAS file using PDAL 2.3.0 (git-version: Release) and pipeline as follows:</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"> [</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"readers.las",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"input.las"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    },</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    {</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "type":"writers.gdal",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "resolution": 0.05,</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "data_type":"uint16",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "output_type":"mean",</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "dimension":"Intensity",<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "gdalopts":"COMPRESS=ZSTD,ZSTD_LEVEL=1,NUM_THREADS=ALL_CPUS,TILED=YES",           <u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "bounds":"([372595,374062],[140751,142246])",<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">        "filename":"output.tif"</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">    }                          </span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">]</span><u></u><u></u></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">There is an error: PDAL: vector<T> too long.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">This error was not there when I used PDAL 2.1.0.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">When I removed the “bounds” option, the error is gone, but took much longer time to process than before.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Please advise. <u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Thank you.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Best Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(54,95,145)">Peter Lim<u></u><u></u></span></p><p class="MsoNormal"><i><span style="color:rgb(54,95,145)">GPS Lands (S) Pte Ltd</span></i><i><span style="color:rgb(54,95,145)"><u></u><u></u></span></i></p><p class="MsoNormal"><u></u> <u></u></p></div><div id="gmail-m_8267777599154108019DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid rgb(211,212,222)">
        <tbody><tr>
        <td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" style="color:rgb(68,83,234)" target="_blank">www.avast.com</a>
                </td>
        </tr>
</tbody></table><a href="#m_8267777599154108019_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></div>_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>