[gdal-dev] Install error rgdal

2021-01-22 Thread shannon lewis via gdal-dev
I'm getting this error trying to install newer version of rgdal, already have 1.5-16 install and working. [: ~]$ gdal-config --version3.0.1[: ~]$ geos-config --version3.7.2[: ~]$ proj -VRel. 6.2.0, September 1st, 2019  > sessionInfo()R version 4.0.0 (2020-04-24)Platform: x86_64-pc-linux-gnu (64

Re: [gdal-dev] JPEG/PNG 12 bits GDAL python

2021-01-22 Thread Jesus via gdal-dev
Hi, It work for me too like this!! The -ot uint16 was the key! Thank you a lot Jukka. Im still trying to find the way to do this in python though. Jesús Maria Morán Rosado Project Engineer Av. Cerro del Águila, 3, 28703 S.S. de los Reyes, Madrid CONFIDENTIALITY: This e-mail and any attachmen

Re: [gdal-dev] JPEG/PNG 12 bits GDAL python

2021-01-22 Thread jratike80
Hi, With my GDAL 3.1.4 from OSGeo4W converting a single band Float32 DEM file into JPEG compressed TIFF and into plain JPEG succeeded with these commands: gdal_translate L2431.tif -co COMPRESS=JPEG -ot uint16 -co NBITS=12 out.tif gdal_translate L2431.tif -of JPEG -ot uint16 -co NBITS=12 out.jpg

[gdal-dev] JPEG/PNG 12 bits GDAL python

2021-01-22 Thread Jesus via gdal-dev
Hello and thank you in advance, Im trying to generate png and jpeg 12 bits images from a GTiff single band file with no success. I know is there a way to generate 12 bits images in the GDAL command line as I have seen in some examples (“gdal_translate mandril_rgb.tif -co COMPRESS=JPEG -co PHOTO