Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
My investigation, might be an issue for the github : band->SetMetadataItem("NETCDF_VARNAME", "foo"); will generate a netCDF band name of "foo1" because there must be a non-null papszExtraDimNames for some reason (netcdfdatasetp.cpp:9630) However -in order for "papszExtraDimNames" to be non-null

Re: [gdal-dev] There's something strange about two tests that are very similar

2024-03-12 Thread Abel Pau via gdal-dev
>>> Are sure all needed files have been committed and pushed for the failing >>> test? Yes, sure. 9 files are needed for oine polygon layer. Absolutely sure. >>> Perhaps an issue Windows CR-LF vs Unix LF end of line characters ? The >>> default settings of git on Windows may mess with binary fi

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
Le 12/03/2024 à 13:48, Even Rouault a écrit : Le 12/03/2024 à 13:33, Pierre Chatelier a écrit : But I can't figure out how to customize the , which is Band1, Band2, Band3... I tried GDALRasterBand::SetDescription(), but without success Looking at netcdfdataset.cpp line 9625, the netCDF var

Re: [gdal-dev] FW: [External] : GDAL 3.8.4 build on windows failed at linking

2024-03-12 Thread Even Rouault via gdal-dev
Not the answer you'll probably want to hear, but: - Use an up-to-date compiler - Use package distributions like vcpkg or conda-forge that already brings all the dependencies "for free" - It seems you mix builds of different compilers (VS vs mingw). That's a bit asking for troubles ;-) Le 1

[gdal-dev] FW: [External] : GDAL 3.8.4 build on windows failed at linking

2024-03-12 Thread Fengting Chen via gdal-dev
Resend with more information: I am trying to build GDAL 3.8.4 on windows under VS2015. The build failed at linking stage that a bunch of external symbols not found, specifically the symbols in libproj, libcurl. I checked the dll library stub .lib for libproj and libcurl using “dumpbin” and foun

Re: [gdal-dev] There's something strange about two tests that are very similar

2024-03-12 Thread Even Rouault via gdal-dev
- Are sure all needed files have been committed and pushed for the failing test? - Perhaps an issue Windows CR-LF vs Unix LF end of line characters ? The default settings of git on Windows may mess with binary files. cf https://docs.github.com/en/get-started/getting-started-with-git/configurin

[gdal-dev] There's something strange about two tests that are very similar

2024-03-12 Thread Abel Pau via gdal-dev
Hi, I have in a single test python file with 3 tests inside: gdal/autotest/ogr/ogr_miramon_vector.py at master * AbelPau/gdal (github.com) In some actions the first and second are Ok but the third is not. Exampl

[gdal-dev] WFS: Why to query the schema of all feature types if asking for just one?

2024-03-12 Thread Rahkonen Jukka via gdal-dev
Hi, I noticed that this query: ogrinfo WFS:https://maps.helcom.fi/arcgis/services/MADS/Human_Activities/MapServer/WFSServer Human_Activities:Dredging_sites_points_36_2 --debug on builds first a DescribeCoverage request that has a list all the 156 featuretypes: Fetch(https://maps.helcom.fi/arcg

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Even Rouault via gdal-dev
Le 12/03/2024 à 13:33, Pierre Chatelier a écrit : But I can't figure out how to customize the , which is Band1, Band2, Band3... I tried GDALRasterBand::SetDescription(), but without success Looking at netcdfdataset.cpp line 9625, the netCDF variable name for a band is extracted from the NE

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
But I can't figure out how to customize the , which is Band1, Band2, Band3... I tried GDALRasterBand::SetDescription(), but without success Looking at netcdfdataset.cpp line 9625, the netCDF variable name for a band is extracted from the NETCDF_VARNAME band metadata item of the source band.

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Pierre Chatelier via gdal-dev
Ok, I can confirm that -creating a dataset with bands with the netCDF driver works -saving the dataset will write the expected "SUBDATASETS" domain with "SUBDATASET__NAME=NETCDF:"":"" But I can't figure out how to customize the , which is Band1, Band2, Band3... I tried GDALRasterBand::SetDes

Re: [gdal-dev] Creating NetCDF dataset with sub datasets

2024-03-12 Thread Even Rouault via gdal-dev
Pierre, Le 12/03/2024 à 12:51, Pierre Chatelier a écrit : Ok, I can confirm that -creating a dataset with bands with the netCDF driver works -saving the dataset will write the expected "SUBDATASETS" domain with "SUBDATASET__NAME=NETCDF:"":"" But I can't figure out how to customize the , whic

Re: [gdal-dev] Segmentation fault (core dumped) occurs when running ogr2ogr command on container

2024-03-12 Thread Rahkonen Jukka via gdal-dev
Hi, I had a try with your dataset on Windows and I had no segmentation fault. Perhaps not surprise because I do not use the same container than you. I had some encoding problem but I believe that it is not related. But perhaps you have some use for knowing that the unzipping part is not necessa

Re: [gdal-dev] Segmentation fault (core dumped) occurs when running ogr2ogr command on container

2024-03-12 Thread 寛座 智大 via gdal-dev
Hi, I tried executing with --config CPL_DEBUG ON, but it did not provide any useful information. I'm sending you the command that's causing the issue. We're using curl command to obtain the Shape file from the internet. --- 1. Obtaining the Shape file: $curl -f --output-dir ./ -O https://d

Re: [gdal-dev] Utilizing GDAL for adding overviews layer in python language

2024-03-12 Thread Idan Miara via gdal-dev
Hi, You could use gdal to write a single tiff file from each numpy array layer and name it accordingly: base.tif - your input tiff file base.tif.ovr - first overview base.tif.ovr.ovr - second overview base.tif.ovr.ovr.ovr - third overview etc. gdal would know to read these overviews automatically

Re: [gdal-dev] Testing the driver

2024-03-12 Thread Abel Pau via gdal-dev
Even, you are right! [cid:image002.png@01DA745F.C8585C00] So, the driver only creates a folder if it’s the last one of a path (with no extension) because this is the place where to write a set of files (a layer). So, thanks again! At this time, if I’m not wrong only there is one red light Merge

Re: [gdal-dev] Utilizing GDAL for adding overviews layer in python language

2024-03-12 Thread Rahkonen Jukka via gdal-dev
Hi, External overviews that gdaladdo creates when the -ro option is used are TIFF files with a file name extension .ovr. If you can create similar TIFFs with the other library and name them as .ovr then GDAL should use them automatically. -Jukka Rahkonen- Lähettäjä: gdal-dev Puolesta Pradeep

Re: [gdal-dev] Utilizing GDAL for adding overviews layer in python language

2024-03-12 Thread Idan Miara via gdal-dev
Hi, So you are saying that you used gdal buildoverview in Python to add overviews to the tiff file but it only uses CPU and not GPU. And you could use the other library to add overviews using GPU - can you share which library you used or what's the output format that you got? Maybe you can combine

[gdal-dev] Utilizing GDAL for adding overviews layer in python language

2024-03-12 Thread Pradeep Mahato via gdal-dev
Dear Team, We are working on a project with Geo-spatial images using python language for our development purpose. To visualize the images properly pyramid layer is necessary. GDAL buildoverview functionality of python, we are using to generate the overview but it is utilizing only the CPU. We a