Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Travis Kirstine
Thanks all for the feedback!

Right now we are looking at doing this for only 8bit.

Regards


On Fri, 8 May 2020 at 15:14, Frank Warmerdam  wrote:

> Travis,
>
> The big benefit of JPEG compression comes with YCbCr color space which I
> do not believe can be mixed with a 4 band RGBI product.  So I'm not sure
> how one would do this.  One could certainly put the NIR in a distinct
> directory in the GeoTIFF, but not many applications would know how to
> utilize that, and it would not appear as just a 4th band from the GDAL view
> of things.
>
> In theory you could do BAND interleaved JPEG and compress each of the 4
> bands separately but I do not think you get a great quality/compression
> result from this.
>
> I'm also curious if you were wanting to just do 8bit or 12/16bit?
>
> I would love to have a way of distributing 12/16 bit RGBI data with a good
> (gentle) lossy compression and good application compatibility in TIFF.
>
> Best regards,
> Frank
>
> On Fri, May 8, 2020 at 3:08 PM Travis Kirstine 
> wrote:
>
>> Is it possible to create RGBI Cloud Optimized Tiffs with JPEG compression?
>> ___
>> gdal-dev mailing list
>> gdal-dev@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
> --
>
> ---+--
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmer...@pobox.com
> light and sound - activate the windows | +1 650-701-7823
> and watch the world go round - Rush| Geospatial Software Developer
>
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Even Rouault
On vendredi 8 mai 2020 15:08:36 CEST Travis Kirstine wrote:
> Is it possible to create RGBI Cloud Optimized Tiffs with JPEG 
compression?

Possibly. But not with the COG driver, which doesn't offer the option 
for that. You should use the old way with the GTiff driver by forcing
-co INTERLEAVE=BAND so that each band is JPEG compressed 
separately (since pixel-interleaved JPEG compression is limited to 3 
samples)

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Frank Warmerdam
Travis,

The big benefit of JPEG compression comes with YCbCr color space which I do
not believe can be mixed with a 4 band RGBI product.  So I'm not sure how
one would do this.  One could certainly put the NIR in a distinct directory
in the GeoTIFF, but not many applications would know how to utilize that,
and it would not appear as just a 4th band from the GDAL view of things.

In theory you could do BAND interleaved JPEG and compress each of the 4
bands separately but I do not think you get a great quality/compression
result from this.

I'm also curious if you were wanting to just do 8bit or 12/16bit?

I would love to have a way of distributing 12/16 bit RGBI data with a good
(gentle) lossy compression and good application compatibility in TIFF.

Best regards,
Frank

On Fri, May 8, 2020 at 3:08 PM Travis Kirstine 
wrote:

> Is it possible to create RGBI Cloud Optimized Tiffs with JPEG compression?
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev



-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam,
warmer...@pobox.com
light and sound - activate the windows | +1 650-701-7823
and watch the world go round - Rush| Geospatial Software Developer
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] COG - RGBI

2020-05-08 Thread Vincent Sarago
I guess you mean RGB and I for Infra-red ?  Anyway the answer will be NO. JPEG 
only allow 3 bands + a bit mask (same for Webp).

For raster with more than 3 bands there is no real option to get compression 
(with loss) as high as with JPEG or WEBP . 

> Le 8 mai 2020 à 15:08, Travis Kirstine  a écrit :
> 
> Is it possible to create RGBI Cloud Optimized Tiffs with JPEG compression?
> ___
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] COG - RGBI

2020-05-08 Thread Travis Kirstine
Is it possible to create RGBI Cloud Optimized Tiffs with JPEG compression?
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev