skillfed

cogeo-mosaic

CLI and Backends to work with MosaicJSON.

cogeo-mosaic v9.2.0 114.6K downloads/30d#12,289 on PyPI119
Permissive license MIT License Copyright (c) 2019 Development Seed Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to… (full text in the JSON record) Active released

What it is and what it does

cogeo-mosaic is a library for creating and querying mosaics of Cloud Optimized GeoTIFF (COG) files using the mosaicJSON specification. It provides multiple backend implementations (in-memory, file-based, HTTP, cloud storage) to store and retrieve mosaic metadata, enabling efficient spatial queries across large collections of geospatial imagery without loading entire datasets into memory.

The package integrates with rasterio and rio-tiler for geospatial operations, uses morecantile for tile matrix set support, and offers both a Python API and CLI tools. It supports multiple coordinate reference systems and tile matrix sets beyond the default Web Mercator, making it suitable for diverse geospatial workflows. Recent versions (9.0+) introduced breaking changes to backend APIs and mosaic information models to align with mosaicJSON 0.0.3 specification.

Use it for:

  • Build searchable mosaics of satellite or aerial imagery stored as COGs in cloud storage (S3, Azure, GCS).
  • Query which COG tiles intersect a given geographic point, bounding box, or tile coordinate.
  • Serve dynamic tiles from a mosaic collection via a web service (commonly paired with TiTiler).
  • Manage and organize large collections of geospatial rasters with metadata in mosaicJSON format.
  • Convert between different tile matrix sets when working with non-Web-Mercator coordinate systems.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Creates and manages mosaics of Cloud Optimized GeoTIFF files according to the mosaicJSON specification, enabling efficient access to large collections of geospatial imagery.

Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem in geospatial workflows. The MIT license is permissive. Be aware of breaking changes in recent major versions (9.0+) if upgrading; review the changelog for API changes to backends and mosaic models.

Install

cogeo-mosaic on PyPI

pip

pip install cogeo-mosaic

uv

uv add cogeo-mosaic

poetry

poetry add cogeo-mosaic

Installing cogeo-mosaic

Before you install

Low install friction with a pure-Python wheel. The package requires libgeos (via shapely) as a system dependency since version 5.0, but shapely wheels are available for most environments. Actively maintained with recent releases and Python 3.14 support.

License in practice

MIT License permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license and copyright notice.

Quickstart

pip install cogeo-mosaic

from cogeo_mosaic.backends import MemoryBackend
from cogeo_mosaic.models import MosaicJSON

mosaic_def = MosaicJSON(name="my_mosaic", tiles=[...])
with MemoryBackend(mosaic_def=mosaic_def) as mosaic:
    img, mask = mosaic.tile(0, 0, 0)

Requires libgeos system library (shapely wheels available for most platforms; manual installation needed on some systems).

Verify before relying

  • Whether httpx2 (the HTTP client switched to in 9.2.0) is a typo or intentional package name.
  • Performance characteristics when working with very large mosaic collections.
  • Specific cloud storage backend support beyond Azure, Google Cloud, and S3.

Package facts

License MIT License Copyright (c) 2019 Development Seed Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 14 — attrs, cachetools, click, click-plugins, cligj, httpx2, morecantile, numpy, pydantic-settings, pydantic, rasterio, rio-tiler, shapely, supermorecado
Maintenance actively maintained — 57 days since the last release
Last repo commit
First released
Downloads 114,564/month — #12,289 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: cogeo_mosaic-9.2.0-py3-none-any.whl

Keywords: COG, MosaicJSON

Intended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: GIS

Tags

cloud optimized geotiff mosaicmosaicjson creationcog tile managementgeospatial image mosaicingraster mosaic backendstile matrix set supportcog aggregation
geospatialcloud-optimized-geotifftile-serving

More GIS packages