Skip to main content

CLI and Backends to work with MosaicJSON.

Project description

cogeo-mosaic

rio-tiler

Create mosaics of Cloud Optimized GeoTIFF based on the mosaicJSON specification.

Test Coverage Package version Downloads Downloads


Documentation: https://developmentseed.org/cogeo-mosaic/

Source Code: https://github.com/developmentseed/cogeo-mosaic


Read the official announcement https://medium.com/devseed/cog-talk-part-2-mosaics-bbbf474e66df

Install

$ pip install pip -U
$ pip install cogeo-mosaic --pre

# Or from source

$ pip install git+http://github.com/developmentseed/cogeo-mosaic

Notes:

  • Starting with version 2.0, pygeos has replaced shapely and thus makes libgeos a requirement.

  • pygeos hosted on pypi might not compile on certain machines. This has been fixed in the master branch and can be installed with pip install git+https://github.com/pygeos/pygeos.git

See it in action

  • TiTiler: A lightweight Cloud Optimized GeoTIFF dynamic tile server (COG, STAC and MosaicJSON).

Contribution & Development

See CONTRIBUTING.md

License

See LICENSE

Authors

Created by Development Seed

See contributors for a listing of individual contributors.

Changelog

4.2.0 (2022-10-24)

  • remove python 3.7 support
  • add python 3.10 support
  • switch to hatch build-system
  • update rio-tiler dependency to >=4.0.0a0

4.1.1 (2022-10-21)

4.1.0 (2022-02-22)

  • remove mercantile and switch to morecantile>=3.1

4.0.0 (2021-11-30)

  • no change since 4.0.0a2

4.0.0a2 (2021-11-22)

  • update rio-tiler requirement (>=3.0.0a6) and update backend reader type information

4.0.0a1 (2021-11-18)

  • update rio-tiler requirement (>=3.0.0a5)
  • fix MosaicBackend to match Backend input names.

4.0.0a0 (2021-10-20)

breaking changes

  • remove BaseBackend.metadata() method (can be replaced by BaseBackend.mosaic_def.dict(exclude={"tiles"}))
  • remove cogeo_mosaic.models.Metadata model
  • remove python 3.6 support
  • BaseBackend.path -> BaseBackend.input attribute (input was added in rio-tiler BaseReader)

3.0.2 (2021-07-08)

3.0.1 (2021-06-22)

3.0.0 (2021-05-19)

3.0.0rc2 (2021-02-25)

breaking

  • gzip is now only applied if the path endswith .gz
  • remove backend_options attribute in base backends. This attribute was used to pass optional gzip option and/or STAC related options
  • STAC backends has additional attributes (stac_api_options and mosaic_options)

3.0.0rc1 (2021-02-11)

breaking

3.0.0b1 (2020-12-18)

3.0.0a19 (2020-12-14)

  • Update to remove all calls to rio_tiler.mercator functions.

3.0.0a18 (2020-11-24)

  • update Backend base class for rio-tiler 2.0.0rc3 (add .feature() method)

3.0.0a17 (2020-11-09)

  • update for rio-tiler 2.0rc and add backend output models

3.0.0a16 (2020-10-26)

  • raise MosaicNotFoundError when mosaic doesn't exists in the DynamoDB table.

3.0.0a15 (2020-10-22)

3.0.0a14 (2020-10-22)

with MosaicBackend(
    f"stac+{stac_endpoint}",
    query.copy(),
    11,
    14,
    backend_options={
        "accessor": lambda feature: feature["id"],
        "stac_next_link_key": "next",
    }
) as mosaic:

Breaking changes

3.0.0a13 (2020-10-13)

  • add TMS in BaseBackend to align with rio-tiler BaseBackend.

3.0.0a12 (2020-10-07)

Note: We changed the versioning scheme to {major}.{minor}.{path}{pre}{prenum}

3.0a11 (2020-09-21)

  • Raise Exception when trying to overwrite a mosaic (#112)
  • Add reverse option in .tile and .point to get values from assets in reversed order.

3.0a10 (2020-08-24)

  • Allow PointOutsideBounds exception for point method (#108)

3.0a9 (2020-08-24)

  • BaseBackend.center returns value from the mosaic definition (#105)

3.0a8 (2020-08-21)

  • BaseBackend is now a subclass of rio-tiler.io.base.BaseReader (add minzoom, maxzoom, bounds properties and info method)
  • use attr to define backend classes

Breaking changes

  • backend_options is now used to pass options (*kwargs) to the _read method

3.0a7 (2020-07-31)

  • update to rio-tiler 2.0b5

Breaking changes

  • 'value' -> 'values' in MosaicBackend.point output (#98)

3.0a6 (2020-07-31)

  • Use environement variable to set/disable cache (#93, autho @geospatial-jeff)
  • Allow Threads configuration for overview command (author @kylebarron)
  • add --in-memory/--no-in-memory to control temporary files creation for overview function.
  • allow pixel_selection method options for overview function.
  • update to rio-tiler 2.0b4
  • use new COGReader and STACReader to add .tile and .point methods directly in the backends

Breaking changes

  • backend.tile -> backend.assets_for_tile
  • backend.point -> backend.assets_for_point

3.0a5 (2020-06-29)

3.0a4 (2020-06-25)

  • add STACBackend (#82)
  • fix backends caching and switch to TTL cache (#83)

3.0a3 (2020-05-01)

  • add Upload CLI (#74, author @kylebarron)
  • fix boto3 dynamodb exception (#75)

3.0a2 (2020-05-01)

  • Better mosaicJSON model testing and default center from bounds (#73, author @geospatial-jeff)

3.0a1 (2020-05-01)

This is a major version, meaning a lot of refactoring was done and may lead to breaking changes.

  • add quadkey_zoom option in CLI (#41, author @kylebarron)
  • use R-tree from pygeos for testing intersections (#43, author @kylebarron)

Breaking changes

2.0.1 (2020-01-28)

  • Bug fix, use pygeos from pypi instead of git repo

2.0.0 (2020-01-28) - Major refactor

  • remove stack related code (lambda handler, serverless)
  • switch to pygeos (#24)
  • bug fixes
  • add last pixel_method

1.0.0 (2019-12-13)

  • add tif output
  • fix overview creation
  • add other Web templates

0.3.0 (2019-11-07)

  • use aws lambda layer
  • add update_mosaic utility function
  • add /tiles/point endpoint to get points values from a mosaic
  • add logs for mosaic creation
  • add custom pixel methods
  • add custom color maps

Breaking changes

  • rename /mosaic/info/<mosaicid> to /mosaic/<mosaicid>/info

0.2.0 (2019-09-30)

  • update for lambda-proxy~=5.0 (#15)
  • add minimum_tile_cover option for mosaic creation (#16)
  • add tile_cover_sort option (#16)
  • add verbosity for cli

0.1.0 (2019-09-05)

  • add /create.html endpoint (#14)
  • update to remotepixel/amazonlinux docker image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cogeo_mosaic-4.2.0.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

cogeo_mosaic-4.2.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file cogeo_mosaic-4.2.0.tar.gz.

File metadata

  • Download URL: cogeo_mosaic-4.2.0.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.0

File hashes

Hashes for cogeo_mosaic-4.2.0.tar.gz
Algorithm Hash digest
SHA256 22d3ba7148de8c42c597affcb13b9758e2a5d94ce258a8f394e2e7f0392b6a8b
MD5 523d9bf7a25be99a4fdd8731693ab6c9
BLAKE2b-256 acb919aefd594714f4ba1814bce76c0da35eafa187bc101500fb3789dcdb2265

See more details on using hashes here.

File details

Details for the file cogeo_mosaic-4.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cogeo_mosaic-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3005ce2ad8ad3599f71c7a181fc42c570ed7c290b13b377d1ca0531d9218cc0c
MD5 ac5f23f66d92202d72428b77e7f1139f
BLAKE2b-256 248d834566fa2585e7d773c8918938679be2386e7d2003a7ad45782cf5056f46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page