mykolakozyr / cogcreator

Simple Cloud Optimized GeoTIFF Creator. Generates COG from GeoTIFF files.

Home Page:https://share.streamlit.io/mykolakozyr/cogcreator/main/app/app.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud Optimized GeoTIFF Creator

Simple Cloud Optimized GeoTIFF Creator. Just upload a GeoTIFF file and click "Create COG". The app would build a Cloud Optimized GeoTIFF so you can download it.

COG Creator Demo

Details

The implementation designed to be as simple as possible. The COG Creation code is mainly based on the article by Sanket Saxena with PyGDAL specifics.

The outcome of the creator is the Cloud Optimized GeoTIFF:

  • Overviews built with the following parameters: 'AVERAGE', [2, 4, 8, 16, 32, 64, 128, 256]
  • COG build with the following parameters: "TILED=YES", "COMPRESS=LZW", "COPY_SRC_OVERVIEWS=YES"

Quality Assurance

  • ✅ Tested on Google Chrome Version 97.0.4692.99
  • ⚠️ Opens COG file in the new tab in Safari Version 14.1 (15611.1.21.161.7, 15611).
  • ⛔️ Not working if the filename has blanks. See issue.
  • ✅ Removes the file from the static folder once creating the next COG.
  • ✅ Generates valid Cloud Optimized GeoTIFF.

Known Limitations

  • ⚠️ Max file size to upload is 200MB.
  • ⚠️ Overview levels are hardcoded to [2, 4, 8, 16, 32, 64, 128, 256].
  • ⚠️ LZW Compression is hardcoded.
  • ⚠️ Supports only TIF(F) files as an input.
  • ⚠️ Hardcoded code for no BIGTIFF support.
  • ⚠️ Uses a dirty hack to download data.
  • ⚠️ requirements.txt should be reviewed and cleaned.

About

Simple Cloud Optimized GeoTIFF Creator. Generates COG from GeoTIFF files.

https://share.streamlit.io/mykolakozyr/cogcreator/main/app/app.py

License:MIT License


Languages

Language:Python 100.0%