Re: [gdal-dev] Trouble with GPKG and colors

2018-10-29 Thread Idan Miara
Hi Even, Thanks for you prompt answer! Could you please point out a valid example on how to read/write a single byte raster dataset (preferably with a color table) in GPKG with any supported setup (tiling, format, padding etc)? GTiff also can store different band count, padding, etc, but there i

Re: [gdal-dev] Trouble with GPKG and colors

2018-10-29 Thread Even Rouault
On lundi 29 octobre 2018 14:19:12 CET Ben Avrahami wrote: > Hello, I'm trying to save a byte raster to a geopackage. I ran into a > problem that the geopackage raster driver does not behave as expected when > working with bytes and color tables. I have written a python script that > explains the is

[gdal-dev] Trouble with GPKG and colors

2018-10-29 Thread Ben Avrahami
Hello, I'm trying to save a byte raster to a geopackage. I ran into a problem that the geopackage raster driver does not behave as expected when working with bytes and color tables. I have written a python script that explains the issue (attached): The script creates 4 rasters in similar ways but

Re: [gdal-dev] Error: Unable to export GeoTIFF file with different datatypes per different bands. All bands should have the same types in TIFF.

2018-10-29 Thread Even Rouault
> > Regarding the nodata value (just curius): how is this value stored (there > is no such tag, AFAIK)? In ASCII. One single value for all the bands https://www.awaresystems.be/imaging/tiff/tifftags/gdal_nodata.html > In the GDAL data model this value is per band and > not per dataset, so tha

Re: [gdal-dev] Error: Unable to export GeoTIFF file with different datatypes per different bands. All bands should have the same types in TIFF.

2018-10-29 Thread Schindler, Fabian
Even, Thanks for the info. I guess in that case using the highest bit depth will have to do. Regarding the nodata value (just curius): how is this value stored (there is no such tag, AFAIK)? In the GDAL data model this value is per band and not per dataset, so that could be a possible improvement

Re: [gdal-dev] Error: Unable to export GeoTIFF file with different datatypes per different bands. All bands should have the same types in TIFF.

2018-10-29 Thread Even Rouault
Fabian, > > I just tried to convert a Cloudsat (2B-GEOPROF to be exact) to a TIFF. I > try to do this using the Python bindings and creating a VRT [3] referencing > the Subdatasets of the HDF 4 file. I'd also note that you use different nodata value per band, which isn't supported by the GTiff

[gdal-dev] Error: Unable to export GeoTIFF file with different datatypes per different bands. All bands should have the same types in TIFF.

2018-10-29 Thread Schindler, Fabian
Hi list, I just tried to convert a Cloudsat (2B-GEOPROF to be exact) to a TIFF. I try to do this using the Python bindings and creating a VRT [3] referencing the Subdatasets of the HDF 4 file. When I try to do this, I get the following error: "Unable to export GeoTIFF file with different datatyp

Re: [gdal-dev] gdalsrsinfo supporting files distribution and ogr2ogr usage of OSRFindMatches()

2018-10-29 Thread Even Rouault
On lundi 29 octobre 2018 00:28:07 CET Jorge Gustavo Rocha wrote: > Hi devs, > > I've just answered a question related to gdalsrsinfo, to get the fix > #4345 [1]. > > First question: why these epsg*.wkt.gz files are not distributed with > gdal? Are there any drawbacks? I can't remember. Was mostl