[gdal-dev] Handle geojson bigger than 200MB

Even Rouault even.rouault at spatialys.com
Fri Feb 28 06:19:52 PST 2020


On vendredi 28 février 2020 15:10:46 CET Francesco Bartoli wrote:
> Dear devs,
> 
> In the pygeoapi project we are experiencing this
> issue https://github.com/geopython/pygeoapi/issues/371. I've just started a
> PR https://github.com/geopython/pygeoapi/pull/372 hich basically tries to
> catch if all properties of the feature have null values and raise an
> exception ourself. Catching null values is due because GDAL doesn't throw
> the exception if OGR_GEOJSON_MAX_OBJ_SIZE has the default value. I'm
> wondering if this is a bug or an expected behavior. If it is then I will
> file an issue.

Use ogr.UseExceptions() (instead of gdal.UseExceptions())

Enabling exceptions is controlled separately in the 2 Python modules.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list