Re: [gdal-dev] Use GitPod for GDAL?

2022-02-18 Thread Even Rouault
Matt, you need to install the "libproj-dev" package. Looking at the CI build recipees is a source of good hints in general: https://github.com/OSGeo/gdal/blob/6e6aff451dbcde450f051bff2f2e75ce6a4a3e6f/.github/workflows/cmake_builds.yml#L38 (this one has pretty much all the pre packaged dependen

Re: [gdal-dev] Use GitPod for GDAL?

2022-02-18 Thread Matt Wilkie
This what I've come up with: https://gitpod.io Create new >> search for gdal >> select OSGeo/gdal On launch: -- Could NOT find PROJ (missing: PROJ_DIR) CMake Error at /home/linuxbrew/.linuxbrew/Cellar/cmake/3.22.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Cou

[gdal-dev] Followup to Matching ESRI projection/transformations using GDAL/OSR

2022-02-18 Thread adamgutonski via gdal-dev
Hello, I recently messaged about matching projection/transformations between GDAL/OSR and ESRI (gdal-dev Digest, Vol 213, Issue 35). I had two follow-up questions regarding transforming from a geographic CRS to a projected CRS. When transforming from EPSG:6318 to a projected CRS EPSG:32015, th

[gdal-dev] Use GitPod for GDAL?

2022-02-18 Thread Matt Wilkie
Hi, Does anyone know how to use https://gitpod.io to set up a gdal development environment? I'm wondering if that might be an easy path for Windows folk like myself to test changes against linux (e.g. like this one https://github.com/OSGeo/gdal/pull/5296#issuecomment-1037141210). I've tried creat

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Lorenzo Di Giacomo
Cool, i tired and actually works, but just a question, is it normal that using gdal_translate -of netCDF -co FORMAT=NC4 the resulting image is rotated by 180° (Upside down)? Thanks Il giorno ven 18 feb 2022 alle ore 15:39 Even Rouault < even.roua...@spatialys.com> ha scritto: > if you gdal_trans

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Even Rouault
if you gdal_translate -of netCDF -co FORMAT=NC4 , the resulting netCDF file will actually be a HDF5 file (with netCDF "decorations"): - https://gdal.org/drivers/raster/netcdf.html#creation-options - https://www.unidata.ucar.edu/software/netcdf/docs/interoperability_hdf5.html Le 18/02/2022 à

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Rahkonen Jukka (MML)
Hi, That HDF5 driver is read-only is documented in https://gdal.org/drivers/raster/hdf5.html so that the driver capabilities are missing Supports CreateCopy() and Supports Create() Same metadata is available with gdalinfo --format [format_name]. (But metadata is wrong for HDF4 and capabilities

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Lorenzo Di Giacomo
Hi guys, i was reading the question and i was wondering if it's possibile do the same translate operation with HDF5, like: gdal_translate -of HDF5Image 3band.tif out.h5, i tried but doesn't work and says " HDF5 driver has no creation capabilities." Thanks _

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Even Rouault
yes, this is sluggish . I just converted a 18002x22000 byte 3-band dataset in 28 minutes. Le 18/02/2022 à 13:44, Rahkonen Jukka (MML) a écrit : More information, probably it does not fail but it is extremely slow. After 15 minutes I am now at this stage gdal_translate -of HDF4Image 3band.ti

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Rahkonen Jukka (MML)
More information, probably it does not fail but it is extremely slow. After 15 minutes I am now at this stage gdal_translate -of HDF4Image 3band.tif out.h4 --debug on GDAL: GDALOpen(3band.tif, this=0215A20D36A0) succeeds as GTiff. Input file size is 12000, 12000 GDAL: QuietDelete(out.h4) invo

[gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Rahkonen Jukka (MML)
Hi, There is a question about HDF4 in https://gis.stackexchange.com/questions/424204/convert-geotiff-to-hdf-using-gdal. I tried the same with GDAL 3.4.0. With a single band image conversion from GeoTIFF into HDF4Image succeeds but with a 3 band image not. I am not sure if it is even supposed to