Re: [gdal-dev] Handle geojson bigger than 200MB

2020-03-02 Thread Francesco Bartoli
thanks Momtchil, it makes sense now Il 2 mar 2020, 10:12 +0100, Momtchil Momtchev , ha scritto: > > On 29/02/2020 20:34, Francesco Bartoli wrote: > > Thanks Even, it works but I have strange result with the size value. I > > wouldn’t have been expected the exception from this test: > > > > $ OGR_

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-03-02 Thread Momtchil Momtchev
On 29/02/2020 20:34, Francesco Bartoli wrote: Thanks Even, it works but I have strange result with the size value. I wouldn’t have been expected the exception from this test: $ OGR_GEOJSON_MAX_OBJ_SIZE=500MB ogr2ogr -f "GeoJSON" indonesia.geojson "WFS:geonode.wfp.org/geoserver/wfs?request=Ge

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-02-29 Thread Francesco Bartoli
Thanks Even, it works but I have strange result with the size value. I wouldn’t have been expected the exception from this test: $ OGR_GEOJSON_MAX_OBJ_SIZE=500MB ogr2ogr -f "GeoJSON" indonesia.geojson "WFS:geonode.wfp.org/geoserver/wfs?request=GetFeature&typename=geonode:glb_bnd_adm0_1&outputfor

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-02-29 Thread Francesco Bartoli
Il 28 feb 2020, 17:49 +0100, Just van den Broecke , ha scritto: > On 28-02-20 17:29, Even Rouault wrote: > > On vendredi 28 février 2020 17:22:28 CET Francesco Bartoli wrote: > > > However, we are using both modules so how can we handle exceptions > > > properly > > > for both of them? > AFAIK we

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-02-28 Thread Just van den Broecke
On 28-02-20 17:29, Even Rouault wrote: On vendredi 28 février 2020 17:22:28 CET Francesco Bartoli wrote: However, we are using both modules so how can we handle exceptions properly for both of them? AFAIK we only use OGR (vector) currently within pygeoapi, no raster/GDAL yet. You can use both

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-02-28 Thread Even Rouault
On vendredi 28 février 2020 17:22:28 CET Francesco Bartoli wrote: > However, we are using both modules so how can we handle exceptions properly > for both of them? You can use both gdal.UseExceptions() and ogr.UseExceptions() > > Using ogr.UseExceptions() the > call https://github.com/geopython/

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-02-28 Thread Francesco Bartoli
However, we are using both modules so how can we handle exceptions properly for both of them? Using ogr.UseExceptions() the call  https://github.com/geopython/pygeoapi/pull/372/files#diff-b105ae3f7a36059b16bdc16a08071016R361  gives the same result silently without any message to system output thi

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-02-28 Thread Francesco Bartoli
Ahh I didn’t know, thanks Even Francesco Il 28 feb 2020, 15:19 +0100, Even Rouault , ha scritto: > 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.

Re: [gdal-dev] Handle geojson bigger than 200MB

2020-02-28 Thread Even Rouault
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 a

[gdal-dev] Handle geojson bigger than 200MB

2020-02-28 Thread Francesco Bartoli
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 oursel