rio-cogeo
Cloud Optimized GeoTIFF (COGEO) creation plugin for rasterio
What it is and what it does
rio-cogeo is a Rasterio plugin that transforms GeoTIFF files into Cloud Optimized GeoTIFFs (COGs), a format optimized for cloud storage and remote access. It enforces COG specifications while adding internal overviews and 512x512 internal tiles to enable efficient partial-file reads over HTTP. The package provides both programmatic and command-line interfaces for conversion and validation, built on top of Rasterio's geospatial I/O layer.
The plugin depends on click for CLI scaffolding, morecantile for tile management, pydantic for configuration validation, and rasterio for the underlying GDAL integration. It targets modern Python (3.11+) and is actively maintained. Users working with geospatial data in cloud environments—particularly those serving raster data over the web or storing large imagery in object storage—use it to pre-process files into a format that minimizes bandwidth and latency for remote clients.
Use it for:
- Convert existing GeoTIFF archives to COG format for efficient cloud storage and HTTP range-request access.
- Validate that raster files meet COG specifications before publishing to cloud platforms like AWS S3 or GCS.
- Automate batch COG creation in geospatial data pipelines to optimize downstream web-based visualization or analysis.
- Create cloud-native raster datasets with internal overviews for multi-resolution web map serving.
- Integrate COG generation into geospatial ETL workflows to reduce data transfer costs in cloud environments.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
rio-cogeo creates and validates Cloud Optimized GeoTIFFs (COGs) as a Rasterio plugin, adding internal overviews and tiled structure to geospatial raster files for efficient cloud storage and access.
Yes. rio-cogeo is actively maintained, has low install friction, carries a permissive BSD license, and solves a concrete problem for anyone working with geospatial rasters in cloud environments. The four runtime dependencies are well-established geospatial libraries. No known security vulnerabilities. Install if you need to create or validate Cloud Optimized GeoTIFFs.
Install
rio-cogeo on PyPI
pip
pip install rio-cogeouv
uv add rio-cogeopoetry
poetry add rio-cogeoInstalling rio-cogeo
Before you install
Low install friction with a pure-wheel distribution and four straightforward runtime dependencies (click, morecantile, pydantic, rasterio). Actively maintained as of 2026-06-23 with recent releases.
License in practice
BSD 3-Clause permissive license allows commercial and private use with minimal restrictions—include the license text and copyright notice in distributions.
Quickstart
pip install rio-cogeo
from rio_cogeo.cogeo import cog_translate
from rasterio.io import MemoryFile
cog_translate('input.tif', 'output_cog.tif')
Requires GDAL > 2.3.2 and Rasterio with GDAL bindings; Python >= 3.11.
Verify before relying
- Whether the package supports the newer GDAL 3.1+ COG driver via --use-cog-driver by default in version 7.0.2.
- Specific performance characteristics or file-size overhead from internal overviews and 512x512 tiling.
Package facts
| License | BSD 3-Clause License Copyright (c) 2021, cogeotiff All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — click, morecantile, pydantic, rasterio |
| Maintenance | actively maintained — 140 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 390,863/month — #7,019 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rio_cogeo-7.0.2-py3-none-any.whl
Keywords: COGEO, CloudOptimized Geotiff, rasterio
Tags
More GIS packages
Shapely provides Python tools for creating,…
permissive · top 1,000 on PyPI
pyprojpyproj provides a Python interface to PROJ,…
permissive · top 1,000 on PyPI
geopandasGeoPandas extends pandas DataFrames to handle…
permissive · top 1,000 on PyPI
geopygeopy is a Python client for geocoding and…
permissive · top 5,000 on PyPI
pyogrioPyogrio provides fast, bulk-oriented read and…
permissive · top 5,000 on PyPI
h3h3 provides Python bindings to Uber's H3…
permissive · top 5,000 on PyPI
rio-tilerrio-tiler reads raster data from local and…
permissive · top 15,000 on PyPI
titiler-coreProvides FastAPI-based building blocks to…
permissive · top 15,000 on PyPI
cogeo-mosaicCreates and manages mosaics of Cloud Optimized…
permissive · top 15,000 on PyPI
titiler-applicationProvides a ready-to-run FastAPI application for…
permissive · top 15,000 on PyPI
rasterioRasterio reads and writes geospatial raster…
permissive · top 5,000 on PyPI
rioxarrayrioxarray extends xarray with geospatial and…
permissive · top 5,000 on PyPI
titiler-extensionsProvides pluggable extension classes for…
permissive · top 15,000 on PyPI
rio-stacrio-stac creates valid STAC Items from raster…
permissive · top 15,000 on PyPI
supermorecadoExtends morecantile with command-line and…
permissive · top 15,000 on PyPI
cogappCog executes Python code snippets embedded in…
permissive · top 15,000 on PyPI