[gdal-dev] gdal2tiles EPSG:3857 Out of Memory

pepijn.szeker at tractebel.engie.com pepijn.szeker at tractebel.engie.com
Mon Nov 15 00:43:33 PST 2021


Dear all,

I assume this belongs to this mailing list instead of the GitHub Issues.
Find attached 2 pdf (plots from QGIS) of the same area, but plotted in EPSG:3857 and EPSG: 31370. (if attachments are not allowed: there is nothing special about what is on the pdf: it's simply 1 styled vector line and 1 labelled vector point).
The pdf were checked with gdalinfo. Except for the CRS, I don't notice anything peculiar.

Notice this is still gdal 2.4.0. Due to company restrictions gdal 3 tiling runs awfully slow. Maybe the problem is however known to any of you.

Windows 10, python 2.7

Task:

  *   Running gdal2tiles on the pdf, with parameters:
     *   -r antialias
     *   -z 12-18
     *   -processes=30

Problem:

  *   EPSG 31370 runs fine, but due to reprojection labels are slightly rotated
  *   EPSG 3857 plot would fix the above, but for some reason gdal2tiles will not run on this. It barely starts. After waiting long enough error codes start showing in the CMD. The errors contain easily hundreds of line.
See below a small excerpt:

Out of memory
Out of memory
0Out of memory
Out of memory
Out of memory
Out of memory
Out of memory
Out of memory
ERROR 2: Cannot allocate result buffer
ERROR 2: memdataset.cpp, 1541: cannot allocate 1x1048576 bytes
Out of memory
Out of memory
Out of memory
ERROR 1: Bitmap decoded size (1x1) doesn't match raster size (1024x1024)
ERROR 1: C:\Users\MyUser\AppData\Local\Temp\tmpj7_ghurm\e4a8f99b-98d8-4425-b6d1-6540ff951385.vrt, band 2: IReadBlock failed at X offset 5, Y offset 2: Bitmap decoded size (1x1) doesn't match raster size (1024x1024)
.Out of memory
Out of memory
Out of memory
Out of memory
Out of memory
Out of memory
Out of memory
ERROR 1: C:\Users\MyUser\AppData\Local\Temp\tmpj7_ghurm\e4a8f99b-98d8-4425-b6d1-6540ff951385.vrt, band 1: IReadBlock failed at X offset 1, Y offset 4
10Out of memory
Out of memory
Out of memory
Out of memory
Out of memory
Out of memory



Any pointers?
Met vriendelijke groeten,
Pepijn SZEKÉR
Engineer - Transport Infrastructure
pepijn.szeker at tractebel.engie.com
<mailto:pepijn.szeker at tractebel.engie.com>M +32 499 61 25 58

[cid:image001.png at 01D7DA05.398D4450]



tractebel-engie.com
<http://tractebel-engie.com/>
TRACTEBEL ENGINEERING S.A.
Ilgatlaan 23
3500 Hasselt - BELGIUM

VAT BE 0412 639 681 RPR/RPM Brussels
Please consider the environment before printing this document.

[cid:image004.png at 01D7DA05.398D4450]<https://www.linkedin.com/company/tractebel-engie-group>  [cid:image006.png at 01D7DA05.398D4450] <https://twitter.com/Tractebel>   [cid:image008.png at 01D7DA05.398D4450] <https://www.instagram.com/tractebel_company>   [cid:image010.png at 01D7DA05.398D4450] <https://www.youtube.com/tractebelengie>



TRACTEBEL Privacy Statement: https://tractebel-engie.com/en/data-privacy

ENGIE Mail Disclaimer: http://www.engie.com/disclaimer/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4492 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 256 bytes
Desc: image003.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 717 bytes
Desc: image004.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 758 bytes
Desc: image006.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 938 bytes
Desc: image008.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 638 bytes
Desc: image010.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3857.pdf
Type: application/pdf
Size: 11293 bytes
Desc: 3857.pdf
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 31370.pdf
Type: application/pdf
Size: 11434 bytes
Desc: 31370.pdf
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20211115/f3e01cc4/attachment-0003.pdf>


More information about the gdal-dev mailing list