Re: [gdal-dev] GDAL-Georefrencing already Georefrenced single band Raster

2018-07-01 Thread Even Rouault
On lundi 2 juillet 2018 11:25:30 CEST sawan nikam wrote: > Hello, > > I am trying to georeference already georeferenced single band raster data > using GDAL with four GCP's. > > Input image is having Coordinate system GCS- WGS1984 (EPSG:4326). > Following Command is run on command Prompt: > > *"

[gdal-dev] GDAL-Georefrencing already Georefrenced single band Raster

2018-07-01 Thread sawan nikam
Hello, I am trying to georeference already georeferenced single band raster data using GDAL with four GCP's. Input image is having Coordinate system GCS- WGS1984 (EPSG:4326). Following Command is run on command Prompt: *"gdal_translate -of GTiff -gcp 72.4819 23.0179 72.4819 23.0179 -gcp 72.492 2

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Stephen Woodbridge
OK, digging deep into my old emails I think I found a solution ( still to be proved): gdalwarp -t_srs EPSG:4326 -r bilinear -co TILED=YES -co BIGTIFF=YES -dstalpha -multi  '00010.jp2' '/data/satmap/tmp.tif' This took 39 min and expanded the 2.1G jp2 into 87G tif, then this gets followed by:

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Even Rouault
On dimanche 1 juillet 2018 11:18:39 CEST Stephen Woodbridge wrote: > Right, but the point 1 is the message says: > ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB) > ie: requires a source raster with only 3 bands (RGB) and the source > raster has only 3 bands! > -dstalpha

Re: [gdal-dev] [EXTERNAL] Convert VRT+JPEG with gdalwarp

2018-07-01 Thread jratike80
kalevj wrote > Hi Doug, > > Thanks for the info. I know that JPEG is lossy but our datasets are very > large. That’s why we use JPEG, which is good enough for our needs and the > file sizes are smaller. Hi, If your datasets are large you should not create plain JPEG files with the GDAL JPEG driv

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Stephen Woodbridge
Right, but the point 1 is the message says: ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB) ie: requires a source raster with only 3 bands (RGB) and the source raster has only 3 bands! -dstalpha if I understand correctly is to create a alpha band in the output file. S

Re: [gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Michael Smith
Steve, Setting that alpha channel makes it 4 bands. RGB + alpha channel. Either remove the ycbcr or the alpha channel. Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers > On Jul 1, 2018, at 10:07 AM, Stephen Woodbridge > wrote: > > Hi all, > > I'm trying to convert a utm j

[gdal-dev] gdalwarp ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)

2018-07-01 Thread Stephen Woodbridge
Hi all, I'm trying to convert a utm jp2 file to a wgs84 tif file and getting "ERROR 6: PHOTOMETRIC=YCBCR requires a source raster with only 3 bands (RGB)" but the src file has only 3 RBG bands. gdalwarp -t_srs EPSG:4326 -dstalpha -r bilinear -of GTiff -co BIGTIFF=YES -co TILED=YES -co COMPRE