Update source/arguments_edit/cog.rst

Build out extra details for the what/why/when for COGs vs standard GeoTIFFs
pull/115/head
Saijin-Naib 2021-10-15 13:04:23 -04:00
rodzic 5b0f98ef25
commit 8a2c8f0b64
1 zmienionych plików z 74 dodań i 0 usunięć

Wyświetl plik

@ -1 +1,75 @@
| Parameter Type:
| **Boolean**
| Parameter Domain:
| True: ``--cog``
| False: ``null``
| Parameter Default:
| False: ``null``
----
======== ========
Resource Impact
======== ========
CPU ●●○ | Medium
GPU ○○○ | None
HDD ●●○ | Medium
RAM ●●○ | Medium
Time ●●○ | Medium
======== ========
----
What Are Cloud Optimized GeoTIFFs (COGs)?
------------------------------------------
Cloud Optimized GeoTIFFs (COGs hereafter) are a special formulation of GeoTIFF files that take advantage of internal overivews as well as tiling (and various forms of compression).
In the case of WebODM, all GeoTIFFs will be generated as COGs because the 2D Map View uses the special attributes of COGs to enable rapid display and preview of the data generated by WebODM.
When are COGs appropriate?
---------------------------
COGs are most appropriate when the GeoTIFF is going to be hosted online and/or accessed by a program which can take advantage of HTTP GetRange Requests and/or internal overviews and tiles.
Why would one use COGs?
----------------------------
The COG structure (internal overviews and tiling) allows for rapid viewing of the data in programs which are capable of reading tiled data and overviews (most GIS software [QGIS etc]). This advantage holds true whether or not the file is hosted online and served via HTTP or whether it is stored locally.
With these features in place, a COG should display much more quickly in a given application than a more legacy formatted GeoTIFF with no overviews and striped structure.
Example Images
---------------
True: ``--cog``
^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. figure:: https://user-images.githubusercontent.com/19295950/127079824-c85fa5a9-842a-4f28-a380-b6404aac7ef2.png
:alt: GDAL Info showing LAYOUT=COG
The Raster Information tool in QGIS can print information from gdalinfo which can be used to confirm the conformance of a GeoTIFF to the COG spec.
.. figure:: https://user-images.githubusercontent.com/19295950/138731905-d10483bd-b91b-4f63-bfb4-89c0f50bf74b.png
:alt: QGIS Layer Properties showing Internal Overviews
The Layer Properties panel can show that there are in fact internal overviews. Keep in mind that not every GeoTIFF has internal overviews, but every COG must.
.. figure:: https://user-images.githubusercontent.com/19295950/138733095-fb5f07ef-fbb0-48f4-8401-25cbf5294b9d.png
:alt: QGIS Layer Properties showing an on-disk file size of 8.78 MB
Note that the on-disk file size is 8.78 MB for the COG due to the presence of internal overviews when compared to the 6.30 MB of the non-COG GeoTIFF below.
False: ``null``
^^^^^^^^^^^^^^^
.. figure:: https://user-images.githubusercontent.com/19295950/127080115-7e09ba30-140f-402d-b00a-8bb0c7bc72ff.png
:alt: GDAL Info not showing LAYOUT=COG
The Raster Information tool in QGIS does not show LAYOUT=COG, which indicates that this GeoTIFF does not meet the COG spec.
.. figure:: https://user-images.githubusercontent.com/19295950/138732051-d227c98d-10a5-46de-ac99-8c5ffb0a12b2.png
:alt: QGIS Layer Properties not showing Internal Overviews
The Layer Properties panel shows that the GeoTIFF lacks all levels of Internal Pyramids.
.. figure:: https://user-images.githubusercontent.com/19295950/138733132-a9c4f8b4-673a-426b-a665-bde5e89e4de3.png
:alt: QGIS Layer Properties showing an on-disk file size of 6.30 MB
Note that the on-disk file size is 6.30 MB for the COG due to the lack of internal overviews when compared to the 8.78 MB of the COG GeoTIFF above.