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] ogr2ogr command to coordinate transform using NTv2 grids in GDAL 3+

2020-02-28 Thread Pedro Venâncio
Thank you very much Even! As usual, faster fix was completely impossible! :) Best regards, Pedro Even Rouault escreveu no dia sexta, 28/02/2020 à(s) 15:51: > Pedro, > > > I'm trying to make transformations with ogr2ogr, using NTv2 grids, in > > GDAL/OGR 3, and it does not work. > > > > The co

Re: [gdal-dev] ogr2ogr command to coordinate transform using NTv2 grids in GDAL 3+

2020-02-28 Thread Even Rouault
Pedro, > I'm trying to make transformations with ogr2ogr, using NTv2 grids, in > GDAL/OGR 3, and it does not work. > > The command I was using in GDAL/OGR 2 is > > ogr2ogr -s_srs "+proj=tmerc +lat_0=39.66 +lon_0=1 +k=1 > +x_0=20 +y_0=30 +ellps=intl > +nadgrids=C:\Users\PedroV

[gdal-dev] ogr2ogr command to coordinate transform using NTv2 grids in GDAL 3+

2020-02-28 Thread Pedro Venâncio
Dear all, I'm trying to make transformations with ogr2ogr, using NTv2 grids, in GDAL/OGR 3, and it does not work. The command I was using in GDAL/OGR 2 is ogr2ogr -s_srs "+proj=tmerc +lat_0=39.66 +lon_0=1 +k=1 +x_0=20 +y_0=30 +ellps=intl +nadgrids=C:\Users\PedroVenancio\AppDa

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

Re: [gdal-dev] Q: GFS Type for int64/bigint?

2020-02-28 Thread Just van den Broecke
Hi Even, Aha, thanks for quick reply! Best, Just On 28-02-20 13:45, Even Rouault wrote: Just, I use ogr2ogr (GML to PG) with a .gfs file with Type specs. I need to map a GML integer value to eventually a BigInt in PostgreSQL. I see String, Integer, Real etc. "Integer" maps to "integer" type i

Re: [gdal-dev] Q: GFS Type for int64/bigint?

2020-02-28 Thread Even Rouault
Just, > I use ogr2ogr (GML to PG) with a .gfs file with Type specs. I need to > map a GML integer value to eventually a BigInt in PostgreSQL. I see > String, Integer, Real etc. "Integer" maps to "integer" type in > PostgreSQL but I need to map to a PG BigInt. > > What Type do I need to specify i

[gdal-dev] Q: GFS Type for int64/bigint?

2020-02-28 Thread Just van den Broecke
Hi, I use ogr2ogr (GML to PG) with a .gfs file with Type specs. I need to map a GML integer value to eventually a BigInt in PostgreSQL. I see String, Integer, Real etc. "Integer" maps to "integer" type in PostgreSQL but I need to map to a PG BigInt. What Type do I need to specify in the .gf

Re: [gdal-dev] AZURE BLOB

2020-02-28 Thread jratike80
Hi, Do you really have spaces in your URL string? -Jukka Rahkonen- Borja Rodríguez Fernández wrote > Hi > I am trying to upload an image in tiff format into QGIS using Azure Blob > protocol with the name of the blob and the storage account key but I have > this error: > > Layer Invalid: provid

[gdal-dev] AZURE BLOB

2020-02-28 Thread Borja Rodríguez Fernández
Hi I am trying to upload an image in tiff format into QGIS using Azure Blob protocol with the name of the blob and the storage account key but I have this error: Layer Invalid: provider GDAL You can not open GDAL dataset / vsiaz / cog2 / 3LiESLack AZURE_STORAGE_ACCOUNT + AZURE_STORAGE_ACCE