[gdal-dev] ogr2ogr error: ERROR 1: Maximum number of characters allowed reached.

Even Rouault even.rouault at spatialys.com
Tue Sep 20 09:41:30 PDT 2022


Moises,

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 
https://github.com/OSGeo/gdal/pull/6403 and also added an open option to 
make it configurable.

Even

Le 20/09/2022 à 18:06, Moises Calzado via gdal-dev a écrit :
> Hello everyone,
>
> 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:
>
>     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
>
>
> The error that is thrown by ogr2ogr is the following one:
>
>     ERROR 1: Maximum number of characters allowed reached.
>
>
> 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?
>
> If you want to reproduce it there is a link to the file 
> <https://drive.google.com/file/d/1nG1kHqG6bLXBV_aOaPreDW4674ufdNjy/view?usp=sharing> 
> that provoked this error.
>
> Thanks so much in advance,
> Kind regards.
> -- 
> *Moises Calzado*
>
> Support Engineer
>
> (US) +1 917 463 3232 | (ES) +34 911 165 823 | mcalzado at carto.com
>
> <https://spatial-data-science-conference.com/2022/newyork/>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
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/20220920/df8d188a/attachment.htm>


More information about the gdal-dev mailing list