Get free YouTube views, likes and subscribers
Get Free YouTube Subscribers, Views and Likes

Cloud Optimized GeoTIFF(COG):Create COG Upload on AWS (S3) Bucket Access through QGIS u0026 OpenLayers

Follow
OpenGeo Lab

Complete Cloud Optimized Geotiff(COG) Tutorial:
In this video, your will learn how to convert Geotiff files to cloud optimized Geotiff (COG), Futher how to upload the COG files to AWS S3 cloud Bucket and in the end how to access data in QGIS (desktop GIS software) and also how to render CloudOptimized GeoTIFF data in a WebMap (WebGIS application) using OpenLayers api.

Timeline of the Video:
00:00 Introduction
03:34 How to Convert GeoTIFF file to cloud optimized Geotiff (COG) file using GDAL
08:30 Uploading cloud optimized Geotiff(COG) files to AWS Cloud storage(S3) Bucket
12:27 Accessing cloud optimized Geotiff(COG) files from QGIS
15:44 Rendering CloudOptimized GeoTIFF data in a WebMap (WebGIS application) using OpenLayers API.

WebGIS application shown in the video:
https://drive.google.com/file/d/1JnVv...

AWS Free tier Account:
https://aws.amazon.com/free/?allfree...

GDAL command used for converting GeoTIFF to COG:
gdal_translate input.tif output_cog.tif of COG co COMPRESS=LZW

Bucket policy (JSON) for allowing Public access to files stored in AWS s3 Bucket used in the video:
{
"Version": "20121017",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::Bucket_name/*"
}
]
}

The CORS configuration, written in JSON for AWS S3 Bucket used in the video:

[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"HEAD"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": [],
"MaxAgeSeconds": 3000
}
]

Web Resources:
https://gdal.org/
https://www.cogeo.org
https://www.cogeo.org/developersguid...
https://openlayers.org/workshop/en/cog/'>https://openlayers.org/workshop/en/cog/
https://openlayers.org/en/latest/exam...
https://openlayers.org
https://github.com/walkermatt/ollaye...
https://www.qgis.org/en/site/

Cloud Optimized GeoTIFF (COG):
A Cloud Optimized GeoTIFF (COG) is a regular GeoTIFF file, aimed at being hosted on a HTTP file server, with an internal organization that enables more efficient workflows on the cloud. It does this by leveraging the ability of clients issuing ​HTTP GET range requests to ask for just the parts of a file they need.
The first is the ability of a GeoTIFF to not only store the raw pixels of the image, but to also organize those pixels in particular ways. The second is HTTP GET range requests, that let clients ask for just the portions of a file that they need. Together these enable fully online processing of data by COGaware clients, as they can stream the right parts of the GeoTIFF as they need it, instead of having to download the whole file.

QGIS:
QGIS is a professional GIS application that is built on top of and proud to be itself Free and Open Source Software (FOSS).QGIS is a user friendly Open Source Geographic Information System (GIS) licensed under the GNU General Public License. QGIS is an official project of the Open Source Geospatial Foundation (OSGeo). It runs on Linux, Unix, Mac OSX, Windows and Android and supports numerous vector, raster, and database formats and functionalities.

GDAL:
GDAL is a translator library for raster and vector geospatial data formats that is released under an MIT style Open Source License by the Open Source Geospatial Foundation. As a library, it presents a single raster abstract data model and single vector abstract data model to the calling application for all supported formats. It also comes with a variety of useful command line utilities for data translation and processing. The NEWS page describes the May 2022 GDAL/OGR 3.5.0 release.

Amazon AWS S3:
Amazon S3 or Amazon Simple Storage Service is a service offered by Amazon Web Services (AWS) that provides object storage through a web service interface.Amazon S3 uses the same scalable storage infrastructure that Amazon.com uses to run its ecommerce network. Amazon S3 can store any type of object, which allows uses like storage for Internet applications, backups, disaster recovery, data archives, data lakes for analytics, and hybrid cloud storage.

OpenLayers:
OpenLayers makes it easy to put a dynamic map in any web page. It can display map tiles, vector data and markers loaded from any source. OpenLayers has been developed to further the use of geographic information of all kinds. It is completely free, Open Source JavaScript, released under the 2clause BSD License (also known as the FreeBSD).

posted by SofMoonyHydayt8