Re: [gdal-dev] Issue with resampling algorithm in gdal_array.DatasetReadAsArray python wrapper function

2022-02-10 Thread Even Rouault
Ok, so yes the issue is likely a bug in the ECW driver. Quickly looking at the code I do see something potentially suspicious. Please file a ticket to https://github.com/OSGeo/gdal/issues/new with all the below information. Le 10/02/2022 à 17:01, Miguel A. Manso a écrit : Even Thank you for

Re: [gdal-dev] Encoding in single transaction shp to PG

2022-02-10 Thread matteo
Hi Even, right! Exactly what I was missing! Just for reference I used: python3 ogr2vrt.py my_shape.shp my_vrtvrt -oo ENCODING=ISO-8859-1 Thanks! Matteo ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-d

Re: [gdal-dev] Issue with resampling algorithm in gdal_array.DatasetReadAsArray python wrapper function

2022-02-10 Thread Miguel A. Manso
Even Thank you for your comments I have created a new environment, installed the latest version (3.4.1) had version 3.0.4 and the problem persisted. I have done another test which may give the clue as to where the problem lies. My datasource is an ECW file and if I use this datasource to extra

Re: [gdal-dev] does GDAL require proj@7?

2022-02-10 Thread Gerald Nelson
Not malice, just an “it’s not our problem” response. That was from one person; others have been more helpful. It turns out that it is complicated because of the gdal dependency tree. Here’s an explanation from https://github.com/Homebrew/homebrew-core/pull/94807 We're in a bit of bind here. I w

Re: [gdal-dev] does GDAL require proj@7?

2022-02-10 Thread Robert Coup
Hi, On Wed, 9 Feb 2022 at 16:30, Gerald Nelson wrote: > The homebrew folks just blew me off. Said it was not their problem. So I > more or less politely responded that it would be helpful if they could > provide me with contact info for the entity that was responsible for the > formula. This see

Re: [gdal-dev] Issue with resampling algorithm in gdal_array.DatasetReadAsArray python wrapper function

2022-02-10 Thread Even Rouault
Miguel, I am trying to use the gdal_array.DatasetReadAsArray function to extract a window from a 3B gtif file by indicating the dataset, the upper left corner image coordinates, the window size (256x256) at actual scale in the dataset, the desired buffer size (larger than actual size 341x341

Re: [gdal-dev] Encoding in single transaction shp to PG

2022-02-10 Thread Even Rouault
Matteo, you can define open options for each source layer in a VRT: https://github.com/OSGeo/gdal/blob/c03502bc9eb5f8c9b25a8d0de06e009bf9756548/data/ogrvrt.xsd#L66 Even Le 10/02/2022 à 11:46, matteo a écrit : Hi all, I've set up a QGIS Processing script that uses GdalUtils that takes a vrt

[gdal-dev] Encoding in single transaction shp to PG

2022-02-10 Thread matteo
Hi all, I've set up a QGIS Processing script that uses GdalUtils that takes a vrt catalog that points to specific shapefiles with and without geometries. Taking single layers with the -oo ENCODING=ISO-8859-1 option as suggested by Even works great. But it seems not working with a list_of_sha