<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Moises,</p>
    <p>there's a limit for the maximum size of a line to 1 MB that was
      added some time ago (post 3.2.2). I've increased it to 10 million
      bytes in <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/6403">https://github.com/OSGeo/gdal/pull/6403</a> and also added an
      open option to make it configurable.</p>
    <p>Even<br>
    </p>
    <div class="moz-cite-prefix">Le 20/09/2022 à 18:06, Moises Calzado
      via gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAObRW4TDnkQHFFH7LN94WRD3JVwB6f12W0=OmOo4UfDSTGWKKw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello everyone,
        <div><br>
        </div>
        <div>We're facing some issues working with ogr2ogr in the 3.5.1
          version, as we've found a dataset that provokes the following
          error during the execution of the following command:</div>
        <div><br>
        </div>
        <div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">ogr2ogr -f CSV
            -skipfailures -makevalid /vsistdout/
            CSV:munic_s_anonymized.csv -simplify 0.00001 -dim XY -t_srs
            EPSG:4326 -lco GEOMETRY=AS_WKT -lco GEOMETRY_NAME=geom -lco
            CREATE_CSVT=YES > test.csv</blockquote>
          <div><br>
          </div>
          <div>The error that is thrown by ogr2ogr is the following one:</div>
          <div><br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">ERROR 1: Maximum number
            of characters allowed reached.</blockquote>
          <div><br>
          </div>
          <div>And when it appears, the process stops processing data.
            We've been able to launch the process without any issue on
            GDAL 3.2.2, so we don't know if something has changes or if
            it's an unexpected behaviour. Have you seen a similar error
            in the latest versions of GDAL?</div>
          <div><br>
          </div>
          <div>If you want to reproduce it there is a <a
href="https://drive.google.com/file/d/1nG1kHqG6bLXBV_aOaPreDW4674ufdNjy/view?usp=sharing"
              moz-do-not-send="true">link to the file</a> that provoked
            this error.</div>
          <div><br>
          </div>
          <div>Thanks so much in advance,</div>
          <div>Kind regards.  </div>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature"> <strong>Moises Calzado</strong>
            <p style="margin-bottom:4px;margin-top:4px"> Support
              Engineer </p>
            <p style="margin-bottom:20px;margin-top:4px"> (US) +1 917
              463 3232 | (ES) +34 911 165 823 | <a
                href="mailto:mcalzado@carto.com" target="_blank"
                moz-do-not-send="true" class="moz-txt-link-freetext">mcalzado@carto.com</a>
            </p>
            <a
              href="https://spatial-data-science-conference.com/2022/newyork/"
              rel="nofollow" target="_blank" moz-do-not-send="true"> <img
src="https://storage.googleapis.com/carto-it-files/signature/SDSC-2022-NY_Signature-mini.jpg"
                moz-do-not-send="true" width="516.656px" height="50"> </a>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </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>