[gdal-dev] Any way to get an autocompletion for ogr/gdal utilities?

2022-02-02 Thread Thomas Gratier
Hello, On Linux, when I type `ogr` in a command line, and on the keyboard type on "tab" key, I get all binaries starting with `ogr` e.g > ogr2ogr ogrinfo ogrlineref ogrmerge.py ogrtindex When using command line like git, I type `git commit --` then use again the tab key and it retur

Re: [gdal-dev] netCDF with virtual file system (/vsicurl/) not working

2022-02-02 Thread Stefan Blumentrath
Thanks so much for clarifying, Even. Very much appreciated. Cheers, Stefan From: Even Rouault Sent: onsdag 2. februar 2022 11:15 To: Stefan Blumentrath ; Rahkonen Jukka (MML) ; gdal-dev Subject: Re: [gdal-dev] netCDF with virtual file system (/vsicurl/) not working The issue with userfaultfd

Re: [gdal-dev] gdal-utils: About GDAL Python Utilities

2022-02-02 Thread Matt.Wilkie
I revised according to your feedback and created an RST document from it. I’m not too experienced with the syntax so there may be some changes needed. Here’s the PR: https://github.com/OSGeo/gdal/pull/5222 -Matt From: Idan Miara Sent: February 1, 2022 12:30 PM To: Matt.Wilkie Cc: gdal-dev@lis

[gdal-dev] Sentinel-1 dataset

2022-02-02 Thread ni hao
Hi list, There are two issues with the latest GDAL 3.4.1 Sentinel-1: 1. ds.GetBandNames() is no longer available. e.g., it should output ['HH', 'HV'] 2. for dual-polarisation, we can have two band combinations: HH/HV and VV/VH. For VV/VH, the band order should be VV/VH, rather than in a

Re: [gdal-dev] GDAL/OGR 3.4.1 not reading S57 correctly

2022-02-02 Thread Momtchil Momtchev
    I get exactly the same layers in /ogrinfo/ as I do with your program both with GDAL 3.3.2 and GDAL 3.4.1 on all of your S57 files. /s57/1B5X02NE.000/ has 13 layers.     Here is the program I used: https://pastebin.com/z99xeQ92 On 28/01/2022 01:55, dtho...@pivotmaritime.com wrote: The

Re: [gdal-dev] netCDF with virtual file system (/vsicurl/) not working

2022-02-02 Thread Even Rouault
The issue with userfaultfd not working with modern Linux kernels was fixed in 3.4.0 per https://github.com/OSGeo/gdal/pull/4508/commits/f861fd3fc6826ab753e0155f15507494d54f7ecb /vsicurl/ on a netCDF file, with the netCDF driver, cannot work on non-Linux systems. The HDF5 driver will then trigg

Re: [gdal-dev] netCDF with virtual file system (/vsicurl/) not working

2022-02-02 Thread Stefan Blumentrath
Hi, And thanks for your swift reply, Jukka. I tried different versions on Linux (Ubuntu: ubuntugis-stable and ubuntugis-unstable): 3.3.2, 3.4.0 Fedora: 3.3.2 On Windows the latest OSGeo4W provided version: 3.4.1 (and there it does not work) On my Fedora box however, I now compiled GDAL 3.4.1, t

Re: [gdal-dev] netCDF with virtual file system (/vsicurl/) not working

2022-02-02 Thread Rahkonen Jukka (MML)
Hi, What is your GDAL version? Check with "gdalinfo --version" -Jukka Rahkonen- Lähettäjä: gdal-dev Puolesta Stefan Blumentrath Lähetetty: keskiviikko 2. helmikuuta 2022 10.36 Vastaanottaja: gdal-dev Aihe: [gdal-dev] netCDF with virtual file system (/vsicurl/) not working Hi, I have been us

[gdal-dev] netCDF with virtual file system (/vsicurl/) not working

2022-02-02 Thread Stefan Blumentrath
Hi, I have been using GDAL to access online data sources in netCDF successfully. With Ubuntu 20.04, this unfortunately no longer works with the netCDF driver. Here is a reproducible example: gdalinfo -if netCDF /vsicurl/https://nbstds.met.no/thredds/fileServer/NBS/S2A/2021/02/28/S2A_MSIL1C_20210

Re: [gdal-dev] netCDF multi-dimensional support

2022-02-02 Thread Stefan Blumentrath
Hi Simon, I am having a similar issue. My workaround has been to deactivate HDF5 (4) driver which hides the netCDF driver. On the command line, you could do: gdalinfo -if netCDF file.nc In Python: for dreiver in ["HDF5", "HDF5Image"]: if gdal.GetDriverByName(driver): gdal.GetDriverBy