diff --git a/developers-guide.html b/developers-guide.html index 33807e4..84d88f1 100644 --- a/developers-guide.html +++ b/developers-guide.html @@ -39,9 +39,17 @@
Planet produces all its data as COG, and has a little tutorial on how to download part of an image using VSI Curl. Most of the tutorial is specific to working with the Planet API, but it shows the use of GDAL Warp with a COG to extract a single farm field from a larger image.
Also on the GDAL wiki page about COG, there is a section on How to generate it with GDAL. For quick reference the one liner is: + +
As of version 3.1 of GDAL there is a built in COG provider which by default provides tiling and creation of overviews, use it like this: +
gdal_translate input.tif output_cog.tif -of COG -co COMPRESS=LZW
+
+
+ There is a GDAL wiki page about COG creation: How to generate it with GDAL. For quick reference the one liner is:
gdal_translate in.tif out.tif -co TILED=YES -co COPY_SRC_OVERVIEWS=YES -co COMPRESS=DEFLATE
-
+
+
+ or you can use rio-cogeo plugin:
$ rio cogeo create in.tif out.tif --cog-profile deflate