Adding a COGΒΆ

A cloud optimized GeoTIFF is a regular GeoTIFF file, aimed at being hosted on a HTTP file server, whose internal organization is friendly for consumption by clients issuing HTTP GET range request (“bytes: start_offset-end_offset” HTTP header).

It contains at its beginning the metadata of the full resolution imagery, followed by the optional presence of overview metadata, and finally the imagery itself. To make it friendly with streaming and progressive rendering, we recommend starting with the imagery of the smallest overview and finishing with the imagery of the full resolution level.

# TODO: Rework from the original GeoTIFF page...

  1. Open the web browser and navigate to the GeoServer Welcome Page.

  2. Select Add stores from the interface.

    ../_images/geotiff_addstores.png
  3. Select GeoTIFF - Tagged Image File Format with Geographic information from the set of available Raster Data Sources.

    ../_images/geotiff_sources.png
  4. Specify a proper name (as an instance, sentinel2) in the Data Source Name field of the interface.

  5. Click on checkbox Cloud Optimized GeoTIFF (COG) and make sure HTTP is selected on the Range Reader Settings. Lastly, add the following path to the GeoTIFF location in the URL field.

    Note

    file:https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/41/R/NJ/2024/10/S2B_41RNJ_20241030_0_L2A/TCI.tif

    ../_images/addcog1.png
  6. Click Save.

  7. Publish the TCI (True Color Image) layer by clicking on the publish link.

    ../_images/addcog2.png
  8. Check the Coordinate Reference Systems and the Bounding Boxes fields are properly set and click on Save.

    ../_images/addcog3.png
  9. At this point the COG is being published with GeoServer. You can use the layer preview to inspect the data.

    ../_images/addcog4.png