<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Fix in <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/9213">https://github.com/OSGeo/gdal/pull/9213</a> 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.
<style type="text/css">td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}</style></p>
<div class="moz-cite-prefix">Le 08/02/2024 à 09:24, Bureau voor
Archeologie via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:c700d5b3-88e8-4578-b399-7e9fd8a65f2b@bureauvoorarcheologie.nl">I'm
trying to convert a PDF with vector data into a shape with:
<br>
<br>
ogr2ogr test.shp Archeologische\ beleidskaart\ 2023.pdf --config
OGR_PDF_READ_NON_STRUCTURED YES
<br>
<br>
However, It gives the error: ERROR 1: Max token stack size reached
<br>
<br>
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?
<br>
<br>
Some additional info:
<br>
* I can't find information about setting the token stack size, nor
can I find messages from others reporting this error.
<br>
* I found this error is coded in (sources gdal-3.8.3):
'pdfreadvectors.cpp'
<br>
* It's value is defined in gdal_pdf.h: #define TOKEN_STACK_SIZE 8
<br>
* this error also occurs when converting to other file format,
like gml
<br>
<br>
Arjan.
<br>
<br>
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>