[gdal-dev] convert dataType Byte to dataType Int32 on a raster file

2024-10-17 Thread Paul via gdal-dev
Hi, I would like to change a tif file from datatype: Byte to DataType: I32, but when I open the original file and the new I32 file in QGis or in ArcMap there is a huge difference in the colors of the 2 files. How can I do this conversion without the color change? I'v tried this: gdal_translate.

[gdal-dev] gdal_translate

2024-10-15 Thread Paul via gdal-dev
Is there a way to transform a raster file with selected points other then ulx, uly, lrx and lry in Gdal? I would like to select some distinct pixels in the raster file and connect them to coordinates in my map and then translate. Kind regards, Paul ___

Re: [gdal-dev] GDALGetGeoTransform

2024-06-11 Thread Johannes Paul via gdal-dev
t;RPC") > != null, and if it does, you can likely consider than any GeoTransform > is "garbage". If you have RPCs, you can directly compute a geotransform. > You need to reproject using GDALWarp() with the "-rpc" option. > > Even > > Le 11/06/2024 à 16:

[gdal-dev] GDALGetGeoTransform

2024-06-11 Thread Johannes Paul via gdal-dev
Hello, coming back to an old thread regarding a DIMAP product which has no lon/lat (https://lists.osgeo.org/pipermail/gdal-dev/2018-January/048014.html). GDALGetGeoTransform method will return CE_None despite GeoTransformation matrix is not as expected, and in that specific case I would rather use

Re: [gdal-dev] Unable to open KMZ datasource using libkml

2024-04-25 Thread Johannes Paul via gdal-dev
Nice, thanks ! On Thu, 25 Apr 2024 at 14:38, Even Rouault wrote: > Hi, > > you can try something kike ogrinfo /vsizip/your.kmz/your.kml > > Even > Le 25/04/2024 à 14:32, Johannes Paul via gdal-dev a écrit : > > Hello, > using GDAL 3.8.3 compiled with libkml, I'

[gdal-dev] Unable to open KMZ datasource using libkml

2024-04-25 Thread Johannes Paul via gdal-dev
Hello, using GDAL 3.8.3 compiled with libkml, I'm unable to read a specific KMZ file, using ogrinfo (error "unable to open datasource ...") However if I extract the .kml index file for the kmz archive, GDAL can provide ogrinfo on this .kml index file. I noticed from the LIBKML driver documentation

Re: [gdal-dev] GDAL_ENABLE_DRIVER_PDF

2024-03-06 Thread Johannes Paul via gdal-dev
d: JPEG, PNG, OpenJPEG, > lcms2 > > Even > Le 06/03/2024 à 11:00, Johannes Paul via gdal-dev a écrit : > > Hello, > > I have compiled PDFium from https://github.com/rouault/pdfium/tree/master > and I'm trying to get GDAL 3.8.4 built with this geospatial PDF driver

[gdal-dev] GDAL_ENABLE_DRIVER_PDF

2024-03-06 Thread Johannes Paul via gdal-dev
Hello, I have compiled PDFium from https://github.com/rouault/pdfium/tree/master and I'm trying to get GDAL 3.8.4 built with this geospatial PDF driver on Almalinux 8. However if I use cmake with the following variables : *-DGDAL_USE_PDFIUM=ON -DGDAL_ENABLE_DRIVER_PDF=ON -DPDFIUM_INCLUDE_DIR="${I

[gdal-dev] GDAL 2.4.4 compilation fails with pdfium

2023-11-06 Thread Johannes Paul via gdal-dev
Hello, I've been trying to compile GDAL 2.4.4 on Centos7 with pdfium unfortunately it fails with the following ld errors: libgdal.so: undefined reference to `CFDF_Document::CreateNewDoc()' libgdal.so: undefined reference to `CPDF_Document::AddStandardFont(char const*, CPDF_FontEncoding*)' PDFium