Re: [gdal-dev] C++ template functions with raster bands

2016-03-29 Thread Ari Jolma
29.03.2016, 20:48, Even Rouault kirjoitti: Le mardi 29 mars 2016 17:35:26, Ari Jolma a écrit : I want to write template functions like this: template void map(GDALRasterBand *b, mapper *mapper) { ... This function would map the cell values of a band to new ones using some logic that is coded w

Re: [gdal-dev] C++ template functions with raster bands

2016-03-29 Thread Even Rouault
Le mardi 29 mars 2016 17:35:26, Ari Jolma a écrit : > I want to write template functions like this: > > template > void map(GDALRasterBand *b, mapper *mapper) { > ... > > This function would map the cell values of a band to new ones using some > logic that is coded within the mapper object (and t

[gdal-dev] C++ template functions with raster bands

2016-03-29 Thread Ari Jolma
I want to write template functions like this: template void map(GDALRasterBand *b, mapper *mapper) { ... This function would map the cell values of a band to new ones using some logic that is coded within the mapper object (and the logic depends on the cell_type). I would like to catch error

Re: [gdal-dev] gdalwarp with PHOTOMETRIC=YCBCR on grey input TIF image

2016-03-29 Thread Gane R
Sorry I got one sample and it failed withe the -co PHOTOMETRIC=YCBCR on grey TIF with 1 raster band. Thanks Gane On Tue, Mar 29, 2016 at 4:50 PM, Gane R wrote: > I am using gdalwarp withe following option to convert a tif to compressed > TIF > > -co COMPRESS=JPEG -co JPEG_QUALITY=80 -co TILED=Y

[gdal-dev] gdalwarp with PHOTOMETRIC=YCBCR on grey input TIF image

2016-03-29 Thread Gane R
I am using gdalwarp withe following option to convert a tif to compressed TIF -co COMPRESS=JPEG -co JPEG_QUALITY=80 -co TILED=YES -co PHOTOMETRIC=YCBCR -co BLOCKYSIZE=512 -co BLOCKXSIZE=512 Will the PHOTOMETRIC option work on grey tif images. Unfortunately I don't have such data set. If any one