2

I see there are a few test cases to generate a tiled and even a BigTiff GeoTIFF in the GeoTools repository. E.g.

But, is there any case where we can generate a Cloud Optimize GeoTIFF?

1 Answer 1

0

A COG is just a GeoTiff with LZW compressed tiles, with internal overviews, so the standard writer ought to do with the Parameters set as described in the javadocs.

I can't work out how you would include the overviews explicitly or if they are automatically added for you.

3
  • That is not the whole truth. In COG the headers are ordered in a specific way so that information that is needed first is written into the beginning of the file. It may mean total rewrite of a "normal" tiled and compressed TIFF (LZW is not the only compression option). Especially adding overviews to existing GeoTIFF breaks the optimization. More information in gdal.org/en/latest/drivers/raster/cog.html#file-format-details. Commented Sep 6, 2024 at 14:30
  • that's very true.... so Ian, are in Geotools plans to support writing COGs out of the box? Commented Sep 9, 2024 at 13:17
  • We're always open to code contributions Commented Sep 9, 2024 at 15:50

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.