[gdal-dev] ogr2ogr using PDF driver reports: ERROR 1: Max token stack size reached
Even Rouault
even.rouault at spatialys.com
Thu Feb 8 06:32:10 PST 2024
Fix in https://github.com/OSGeo/gdal/pull/9213 for the "max token stack
size reached" error. However opening the resulting converted file
doesn't show something that can be immediately correlated with the
content of the PDF. It is likely that some geometry transformations are
missed by the GDAL PDF vector interpreter.
Le 08/02/2024 à 09:24, Bureau voor Archeologie via gdal-dev a écrit :
> I'm trying to convert a PDF with vector data into a shape with:
>
> ogr2ogr test.shp Archeologische\ beleidskaart\ 2023.pdf --config
> OGR_PDF_READ_NON_STRUCTURED YES
>
> However, It gives the error: ERROR 1: Max token stack size reached
>
> The sources are only converted partly, possibly because of this error.
> Might there be something wrong with my pdf source? Or can this be
> solved by setting some kind of config option when using the PDF driver?
>
> Some additional info:
> * I can't find information about setting the token stack size, nor can
> I find messages from others reporting this error.
> * I found this error is coded in (sources gdal-3.8.3):
> 'pdfreadvectors.cpp'
> * It's value is defined in gdal_pdf.h: #define TOKEN_STACK_SIZE 8
> * this error also occurs when converting to other file format, like gml
>
> Arjan.
>
>
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240208/b41266b9/attachment.htm>
More information about the gdal-dev
mailing list