Re: [gdal-dev] HTTP range request retrying?

2021-10-06 Thread Sean Gillies via gdal-dev
Hi Even, Yes, that's a good point. What I've done at https://github.com/mapbox/rasterio/blob/maint-1.2/tests/test_warp.py#L2022 makes the tests sensitive to the text of CPLError messages, which could change. It's not ideal. On the other hand, I do have confirmation that range requests can be retri

Re: [gdal-dev] ogr2ogr changes field length

2021-10-06 Thread Even Rouault
Matteo, When overwriting, a fresh new file/table is creating, without keeping anything from the existing version. You could probably just blank your target with ogrinfo target.shp -sql "DELETE FROM target" -dialect SQLITE and then ogr2ogr -append target.shp PG:   -nln target Even Le 06

[gdal-dev] ogr2ogr changes field length

2021-10-06 Thread matteo
Hi list, I've a script that uses ogr2ogr to copy, actually overwrite, tables from PG to shapfiles. The PG fields are all text (without a specified length) and the target shapefile that will be overwritten have all text field length equals to 254. When overwriting the length is changes to 80

Re: [gdal-dev] gdal 3.1.2: Unknown resampling method: 13.

2021-10-06 Thread Martin Landa
Hi Even, st 6. 10. 2021 v 14:00 odesílatel Even Rouault napsal: > I'm even surprised gdalconst.GRA_Sum was valid in GDAL 3.1.2, as it was > added (in the Python bindings) only in 3.3.0 per > https://github.com/OSGeo/gdal/pull/4604 sorry, I was wrong. I am running 3.3.2. > But there were other i

Re: [gdal-dev] gdal 3.1.2: Unknown resampling method: 13.

2021-10-06 Thread Even Rouault
Martin, I'm even surprised gdalconst.GRA_Sum was valid in GDAL 3.1.2, as it was added (in the Python bindings) only in 3.3.0 per https://github.com/OSGeo/gdal/pull/4604 But there were other issues that prevented it to work, which will be fixed per https://github.com/OSGeo/gdal/pull/4604 Yo

Re: [gdal-dev] RFC 84: Migrating build systems to CMake

2021-10-06 Thread Robert Coup
(on-list) Hi, On Tue, 5 Oct 2021 at 14:16, Javier Jimenez Shaw wrote: > How would CMake behave with all those options that are defined depending > on what is present on the compiler machine? > This is orthogonal to CMake vs Make, but the RFC does discuss cleaning up consistency of build option

[gdal-dev] gdal 3.1.2: Unknown resampling method: 13.

2021-10-06 Thread Martin Landa
Hi all, we have issue with using gdalconst.GRA_Sum. Calling Warp() with GRA_Sum leads to the error message below: gdal.Warp(output_path, file, dstSRS='EPSG:3035', resampleAlg=gdalconst.GRA_Sum,xRes=1000, yRes=1000) ERROR 5: Unknown resampling method: 13. File "/usr/lib/python3/dist-packages/osge