Re: [gdal-dev] GML driver - gfs geometry type values and supported GML geometry types

2023-01-05 Thread Johannes Echterhoff
Even, Thank you so much for providing the right place in the source code with the relevant information about OGR-to-QGIS geometry type mappings! I’ll document that in my mapping instructions. Best regards, Johannes Von: Even Rouault Gesendet: Donnerstag, 5. Januar 2023 22:50 An: Johannes Echter

Re: [gdal-dev] gdalwarp vs gdal_translate for scaling

2023-01-05 Thread Michael Sumner
ugh, sorry just realized my comment (sentence begins 'Further ...') about "scaling" is completely irrelevant - you mean spatial and not data scaling. Just ignore that one sentence. Cheers, Mike On Fri, Jan 6, 2023 at 10:36 AM Michael Sumner wrote: > in short, warp will give you exactly the ta

Re: [gdal-dev] using vsicurl to read metadata of a resource over https with credentials

2023-01-05 Thread Andrew C Aitchison
lOn Thu, 5 Jan 2023, Paolo Corti wrote: I am trying to read metadata from a file over https on a public web site which requires authentication using gdalinfo and vsicurl - I don't want to download the file as it is really large. Without authentication gdalinfo works correctly. However I need to

Re: [gdal-dev] gdalwarp vs gdal_translate for scaling

2023-01-05 Thread Michael Sumner
in short, warp will give you exactly the target extent of a (possibly) new grid specification in that -te subdivided by the -ts. translate will give you approximately the extent provided to projwin, but snapped to the source grid alignment at a particular zoom implied by the projwin subdivided by

[gdal-dev] using vsicurl to read metadata of a resource over https with credentials

2023-01-05 Thread Paolo Corti
Hi all I am trying to read metadata from a file over https on a public web site which requires authentication using gdalinfo and vsicurl - I don't want to download the file as it is really large. Without authentication gdalinfo works correctly. However I need to use authentication, but so far I di

Re: [gdal-dev] GML driver - gfs geometry type values and supported GML geometry types

2023-01-05 Thread Even Rouault
The possible reason, that this may be due to a lack of mapping between OGR and QGIS geometry types, is quite intriguing. I tried to find out more on the web, and came across https://github.com/qgis/QGIS/blob/master/src/core/providers/ogr/qgsogrprovider.cpp (if that is the right place to look fo

Re: [gdal-dev] vsicurl and HDF5

2023-01-05 Thread Paolo Corti
On Thu, Jan 5, 2023 at 7:14 PM Joe Lee wrote: > > Hi, Paolo! > > > > I tested on mac: > > > > Darwin nene.ad.hdfgroup.org 21.6.0 Darwin Kernel Version 21.6.0: Sun Nov 6 > 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64 x86_64 > > > > I’m using `brew install gdal.` > > > > I just tested

Re: [gdal-dev] vsicurl and HDF5

2023-01-05 Thread Joe Lee via gdal-dev
Hi, Paolo! I tested on mac: Darwin nene.ad.hdfgroup.org 21.6.0 Darwin Kernel Version 21.6.0: Sun Nov 6 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64 x86_64 I’m using `brew install gdal.` I just tested with 3.6.2 and also worked fine. ☺ I hope it works on your Mac too! From: gdal-

Re: [gdal-dev] vsicurl and HDF5

2023-01-05 Thread Paolo Corti
On Thu, Jan 5, 2023 at 6:03 PM Even Rouault wrote: > > Paolo, > > Le 05/01/2023 à 17:56, Paolo Corti a écrit : > > Hi all > > > > Do you know if I can read HDF5 files with vsicurl? > > I made a few tests, but I am getting this error, so I was wondering it > > it is even possible: > > yes this is p

Re: [gdal-dev] vsicurl and HDF5

2023-01-05 Thread Joe Lee via gdal-dev
Yes, it works fine with GDAL 3.6.1: nene-[11:02am]~/src/software>gdalinfo --version GDAL 3.6.1, released 2022/12/14 nene-[11:02am]~/src/software>gdalinfo /vsicurl/https://gamma.hdfgroup.org/ftp/pub/outgoing/NASAHDF/VNP46A1.A2020302.h07v07.001.2020303075447.h5 Driver: HDF5/Hierarchical Data Format

Re: [gdal-dev] vsicurl and HDF5

2023-01-05 Thread Even Rouault
Paolo, Le 05/01/2023 à 17:56, Paolo Corti a écrit : Hi all Do you know if I can read HDF5 files with vsicurl? I made a few tests, but I am getting this error, so I was wondering it it is even possible: yes this is possible. If you get the error message you mention, it means that the HDF5 dri

[gdal-dev] vsicurl and HDF5

2023-01-05 Thread Paolo Corti
Hi all Do you know if I can read HDF5 files with vsicurl? I made a few tests, but I am getting this error, so I was wondering it it is even possible: gdalinfo /vsicurl/https://./myfile.h5 ERROR 1: CPLCreateUserFaultMapping(): syscall(__NR_userfaultfd) failed: error = 38 gdalinfo failed - un

[gdal-dev] gdalwarp vs gdal_translate for scaling

2023-01-05 Thread Daniel Mannarino
Hi folks! We have a process that generates web mercator zoom levels by resampling from the next higher up, from the original resolution down to zoom level 0. Currently we do so with gdalwarp, but a team member realized that gdal_translate is capable of the same, and at first glance is much faste

Re: [gdal-dev] GML driver - gfs geometry type values and supported GML geometry types

2023-01-05 Thread Johannes Echterhoff
Even, Thank you, that was very helpful. Then I’ll map Curve to CompoundCurve and Surface to CurvePolygon. The possible reason, that this may be due to a lack of mapping between OGR and QGIS geometry types, is quite intriguing. I tried to find out more on the web, and came across https://github.

[gdal-dev] Call for review and comments on RFC90: Direct access to compressed raster data

2023-01-05 Thread Even Rouault
Hi, I've submitted RFC90: Direct access to compressed raster data for review and comments:         https://github.com/OSGeo/gdal/pull/7020 Summary: """ The document proposes 2 new methods to directly obtain the content of a window of interest of a raster dataset in its native compressed for

Re: [gdal-dev] GML driver - gfs geometry type values and supported GML geometry types

2023-01-05 Thread Even Rouault
Johannes, this is more an issue on QGIS side, in its OGR provider where there's likely a lack of mapping between the OGR geometry types and QGIS geometry types for Curve and Surface (just guessing, didn't check). The root cause is that Curve and Surface in OGC/ISO specs are abstract types onl

[gdal-dev] GML driver - gfs geometry type values and supported GML geometry types

2023-01-05 Thread Johannes Echterhoff
Hi, The GML driver shows behavior that I do not understand: When I load a feature with a gml:Polygon, which, in the gfs file, is defined with GeomPropertyDefn/Type = Surface, then the geometry does not appear to be understood. At least when I try to load the data in QGIS 3.28.0, then the layer