cogeo-mosaic


Namecogeo-mosaic JSON
Version 7.1.0 PyPI version JSON
download
home_pageNone
SummaryCLI and Backends to work with MosaicJSON.
upload_time2023-12-06 19:21:59
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT 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 deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords cog mosaicjson
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # cogeo-mosaic

<p align="center">
  <img src="https://user-images.githubusercontent.com/10407788/73185274-c41dc900-40eb-11ea-8b67-f79c0682c3b0.jpg" style="max-width: 800px;" alt="rio-tiler"></a>
</p>
<p align="center">
  <em>Create mosaics of Cloud Optimized GeoTIFF based on the <a href='https://github.com/developmentseed/mosaicjson-spec'>mosaicJSON</a> specification.</em>
</p>
<p align="center">
  <a href="https://github.com/developmentseed/cogeo-mosaic/actions?query=workflow%3ACI" target="_blank">
      <img src="https://github.com/developmentseed/cogeo-mosaic/workflows/CI/badge.svg" alt="Test">
  </a>
  <a href="https://codecov.io/gh/developmentseed/cogeo-mosaic" target="_blank">
      <img src="https://codecov.io/gh/developmentseed/cogeo-mosaic/branch/main/graph/badge.svg" alt="Coverage">
  </a>
  <a href="https://pypi.org/project/cogeo-mosaic" target="_blank">
      <img src="https://img.shields.io/pypi/v/cogeo-mosaic?color=%2334D058&label=pypi%20package" alt="Package version">
  </a>

  <a href="https://pypistats.org/packages/cogeo-mosaic" target="_blank">
      <img src="https://img.shields.io/pypi/dm/cogeo-mosaic.svg" alt="Downloads">
  </a>
  <a href="https://github.com/developmentseed/cogeo-mosaic/blob/main/LICENSE" target="_blank">
      <img src="https://img.shields.io/github/license/developmentseed/cogeo-mosaic.svg" alt="Downloads">
  </a>
</p>

---

**Documentation**: <a href="https://developmentseed.org/cogeo-mosaic/" target="_blank">https://developmentseed.org/cogeo-mosaic/</a>

**Source Code**: <a href="https://github.com/developmentseed/cogeo-mosaic" target="_blank">https://github.com/developmentseed/cogeo-mosaic</a>

---

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

## Install
```bash
python -m pip install pip -U
python -m pip install cogeo-mosaic --pre

# Or from source

python -m pip install git+http://github.com/developmentseed/cogeo-mosaic
```

**Notes**:

- Starting with version 5.0, pygeos has been replaced by shapely and thus makes `libgeos` a requirement.
Shapely wheels should be available for most environment, if not, you'll need to have libgeos installed.

## See it in action

- [**TiTiler**](http://github.com/developmentseed/titiler): A lightweight Cloud Optimized GeoTIFF dynamic tile server (COG, STAC and MosaicJSON).

## Contribution & Development

See [CONTRIBUTING.md](https://github.com/developmentseed/cogeo-mosaic/blob/master/CONTRIBUTING.md)

## License

See [LICENSE](https://github.com/developmentseed/cogeo-mosaic/blob/master/LICENSE)

## Authors

Created by [Development Seed](<http://developmentseed.org>)

See [contributors](https://github.com/developmentseed/cogeo-mosaic/graphs/contributors) for a listing of individual contributors.

## Changelog

## 7.1.0 (2023-12-06)

* Automatically remove/add `asset_prefix` in Mosaic Backends

## 7.0.1 (2023-10-17)

* add `py.typed` file (https://peps.python.org/pep-0561)

## 7.0.0 (2023-07-26)

* update `morecantile` requirement to `>=5.0,<6.0`
* update `rio-tiler` requirement to `>=6.0,<7.0`
* update `pydantic` requirement to `~=2.0`

## 6.2.0 (2023-07-11)

* add `coord_crs` to `MosaicBackend.point()` method

## 6.1.0 (2023-07-11)

* add `tilematrixset` in `MosaicBackend.info()` response

## 6.0.1 (2023-07-11)

* fix `HttpBackend` post_init method

## 6.0.0 (2023-07-10)

* update `morecantile>=4.1,<5.0` and `rio-tiler>=5.0,<6.0` requirements

* replace `supermercado` with [`supermorecado`](https://github.com/developmentseed/supermorecado) to burn geometries as tiles for different TMS

* update MosaicJSON models to `0.0.3` specification (adds `tilematrixset`, `asset_type`, `asset_prefix`, `data_type`, `colormap` and `layers` attributes)

* allow Mosaic creation using other TileMatrixSet (default is still `WebMercatorQuad`)

* add `tms` support to MosaicBackend to read tile in other TMS than the mosaic TileMatrixSet

    ```python
    # Before
    # Mosaic and output Tile in WebMercatorQuad
    with MosaicBackend("mosaic.json") as mosaic:
        img, _ = mosaic.tile(0, 0, 0)

    # Now
    # Mosaic in WebMercatorQuad (default), output tile in WGS84
    WGS1984Quad = morecantile.tms.get("WGS1984Quad")
    with MosaicBackend("mosaic.json", tms=WGS1984Quad) as mosaic:
        img, _ = mosaic.tile(0, 0, 0)
    ```

## 5.1.1 (2023-02-06)

* Clip dataset bounds with of TMS bbox (author [@lseelenbinder](https://github.com/lseelenbinder), https://github.com/developmentseed/cogeo-mosaic/pull/200)

## 5.1.0 (2023-01-20)

* use `az://` prefix for private Azure Blob Storage Backend.

## 5.0.0 (2022-11-21)

* switch from pygeos to shapely>=2.0

## 4.2.2 (2022-11-19)

* remove useless file in package

## 4.2.1 (2022-11-15)

* add python 3.11 support

## 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)

* Add Azure Blob Storage backend (author [@christoe](https://github.com/christoe), https://github.com/developmentseed/cogeo-mosaic/pull/191)

## 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)

* update morecantile requirement to >= 3.0
* update rio-tiler requirement to >= 3.0 and update Backend's properties
* switch from `requests` to `httpx`
* add `BaseBackend.assets_for_bbox()` method (https://github.com/developmentseed/cogeo-mosaic/pull/184)

**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)

* Add Google Cloud Storage (`gs://...`) mosaic backend (author [@AndreaGiardini](https://github.com/AndreaGiardini), https://github.com/developmentseed/cogeo-mosaic/pull/179)

## 3.0.1 (2021-06-22)

* Make sure to pass an openned file to click.Progressbar (https://github.com/developmentseed/cogeo-mosaic/pull/178)

## 3.0.0 (2021-05-19)

* update rio-tiler version dependencies
* update pygeos dependency to >=0.10 which fix https://github.com/developmentseed/cogeo-mosaic/issues/81

## 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)

* add `SQLite` backend (https://github.com/developmentseed/cogeo-mosaic/pull/148)
* fix cached responsed after updating a mosaic (https://github.com/developmentseed/cogeo-mosaic/pull/148/files#r557020660)
* update mosaicJSON.bounds type definition to match rio-tiler BaseReader definition (https://github.com/developmentseed/cogeo-mosaic/issues/158)
* add default bounds/minzoom/maxzoom values matching the mosaicjson default in the backends (https://github.com/developmentseed/cogeo-mosaic/pull/162)
* raise an error when trying to pass `mosaic_def` in read-only backend (https://github.com/developmentseed/cogeo-mosaic/pull/162)
* add `MemoryBackend` (https://github.com/developmentseed/cogeo-mosaic/pull/163)

**breaking**

* Updated the backends `.point()` methods to return a list in form of `[(asset1, values)]` (https://github.com/developmentseed/cogeo-mosaic/pull/168)

## 3.0.0b1 (2020-12-18)

* remove `overview` command (https://github.com/developmentseed/cogeo-mosaic/issues/71#issuecomment-748265645)
* remove `rio-cogeo` dependencies
* update rio-tiler version (`2.0.0rc4`)

## 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)

* fix typo in DynamoDB backend (https://github.com/developmentseed/cogeo-mosaic/pull/134)
* rename `cogeo_mosaic/backends/http.py` -> `cogeo_mosaic/backends/web.py` to avoid conflicts (author [@kylebarron](https://github.com/kylebarron), https://github.com/developmentseed/cogeo-mosaic/pull/133)

## 3.0.0a14 (2020-10-22)

* add logger (`cogeo_mosaic.logger.logger`)
* Update STACBackend to better handler paggination (ref: https://github.com/developmentseed/cogeo-mosaic/pull/125)
* with change from [#125](https://github.com/developmentseed/cogeo-mosaic/issues/125), `stac_next_link_key` has be specified if you know the STAC API is using the latest specs:

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

* add `to-geojson` CLI to create a GeoJSON from a mosaicJSON document (#128)
* refactor internal cache (https://github.com/developmentseed/cogeo-mosaic/pull/131)
* add progressbar for iterating over quadkeys when creating a mosaic (author [@kylebarron](https://github.com/kylebarron), https://github.com/developmentseed/cogeo-mosaic/pull/130)

### Breaking changes

* refactored DynamoDB backend to store multiple mosaics in one table (https://github.com/developmentseed/cogeo-mosaic/pull/127)
    - new path schema `dynamodb://{REGION}?/{TABLE}:{MOSAIC}`

* renamed exception `MosaicExists` to `MosaicExistsError`
* renamed option `fetch_quadkeys` to `quadkeys` in DynamoDBBackend.info() method
* add `quadkeys` option in `Backends.info()` to return (or not) the list of quadkeys (https://github.com/developmentseed/cogeo-mosaic/pull/129)
* moves `get_assets` to the base Backend (https://github.com/developmentseed/cogeo-mosaic/pull/131)
* remove multi_level mosaic support (https://github.com/developmentseed/cogeo-mosaic/issues/122)

## 3.0.0a13 (2020-10-13)

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

## 3.0.0a12 (2020-10-07)

* remove pkg_resources (https://github.com/pypa/setuptools/issues/510)
* raise error when `minimum_tile_cover` is > 1 (https://github.com/developmentseed/cogeo-mosaic/issues/117)
* fix wrong indices sorting in default_filter (https://github.com/developmentseed/cogeo-mosaic/issues/118)

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](https://github.com/geospatial-jeff))
* Allow Threads configuration for overview command (author [@kylebarron](https://github.com/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)

* remove FTP from supported backend (#87, author [@geospatial-jeff](https://github.com/geospatial-jeff))
* add backend CRUD exceptions (#86, author [@geospatial-jeff](https://github.com/geospatial-jeff))

## 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](https://github.com/kylebarron))
* fix boto3 dynamodb exception (#75)

## 3.0a2 (2020-05-01)

* Better mosaicJSON model testing and default center from bounds (#73, author [@geospatial-jeff](https://github.com/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](https://github.com/kylebarron))
* use R-tree from pygeos for testing intersections (#43, author [@kylebarron](https://github.com/kylebarron))

### Breaking changes
* added BackendStorage for dynamodb, s3, file and http (with [@kylebarron](https://github.com/kylebarron))
* added MosaicJSON pydantic model for internal mosaicjson representation (with [@kylebarron](https://github.com/kylebarron) and [@geospatial-jeff](https://github.com/geospatial-jeff))

## 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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "cogeo-mosaic",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "COG,MosaicJSON",
    "author": null,
    "author_email": "Vincent Sarago <vincent@developmentseed.com>",
    "download_url": "https://files.pythonhosted.org/packages/6b/f5/8fdbe05929cb9a42ccc37c86b65fbc2836520b102a8476f066fe1ca15a65/cogeo_mosaic-7.1.0.tar.gz",
    "platform": null,
    "description": "# cogeo-mosaic\n\n<p align=\"center\">\n  <img src=\"https://user-images.githubusercontent.com/10407788/73185274-c41dc900-40eb-11ea-8b67-f79c0682c3b0.jpg\" style=\"max-width: 800px;\" alt=\"rio-tiler\"></a>\n</p>\n<p align=\"center\">\n  <em>Create mosaics of Cloud Optimized GeoTIFF based on the <a href='https://github.com/developmentseed/mosaicjson-spec'>mosaicJSON</a> specification.</em>\n</p>\n<p align=\"center\">\n  <a href=\"https://github.com/developmentseed/cogeo-mosaic/actions?query=workflow%3ACI\" target=\"_blank\">\n      <img src=\"https://github.com/developmentseed/cogeo-mosaic/workflows/CI/badge.svg\" alt=\"Test\">\n  </a>\n  <a href=\"https://codecov.io/gh/developmentseed/cogeo-mosaic\" target=\"_blank\">\n      <img src=\"https://codecov.io/gh/developmentseed/cogeo-mosaic/branch/main/graph/badge.svg\" alt=\"Coverage\">\n  </a>\n  <a href=\"https://pypi.org/project/cogeo-mosaic\" target=\"_blank\">\n      <img src=\"https://img.shields.io/pypi/v/cogeo-mosaic?color=%2334D058&label=pypi%20package\" alt=\"Package version\">\n  </a>\n\n  <a href=\"https://pypistats.org/packages/cogeo-mosaic\" target=\"_blank\">\n      <img src=\"https://img.shields.io/pypi/dm/cogeo-mosaic.svg\" alt=\"Downloads\">\n  </a>\n  <a href=\"https://github.com/developmentseed/cogeo-mosaic/blob/main/LICENSE\" target=\"_blank\">\n      <img src=\"https://img.shields.io/github/license/developmentseed/cogeo-mosaic.svg\" alt=\"Downloads\">\n  </a>\n</p>\n\n---\n\n**Documentation**: <a href=\"https://developmentseed.org/cogeo-mosaic/\" target=\"_blank\">https://developmentseed.org/cogeo-mosaic/</a>\n\n**Source Code**: <a href=\"https://github.com/developmentseed/cogeo-mosaic\" target=\"_blank\">https://github.com/developmentseed/cogeo-mosaic</a>\n\n---\n\n**Read the official announcement https://medium.com/devseed/cog-talk-part-2-mosaics-bbbf474e66df**\n\n## Install\n```bash\npython -m pip install pip -U\npython -m pip install cogeo-mosaic --pre\n\n# Or from source\n\npython -m pip install git+http://github.com/developmentseed/cogeo-mosaic\n```\n\n**Notes**:\n\n- Starting with version 5.0, pygeos has been replaced by shapely and thus makes `libgeos` a requirement.\nShapely wheels should be available for most environment, if not, you'll need to have libgeos installed.\n\n## See it in action\n\n- [**TiTiler**](http://github.com/developmentseed/titiler): A lightweight Cloud Optimized GeoTIFF dynamic tile server (COG, STAC and MosaicJSON).\n\n## Contribution & Development\n\nSee [CONTRIBUTING.md](https://github.com/developmentseed/cogeo-mosaic/blob/master/CONTRIBUTING.md)\n\n## License\n\nSee [LICENSE](https://github.com/developmentseed/cogeo-mosaic/blob/master/LICENSE)\n\n## Authors\n\nCreated by [Development Seed](<http://developmentseed.org>)\n\nSee [contributors](https://github.com/developmentseed/cogeo-mosaic/graphs/contributors) for a listing of individual contributors.\n\n## Changelog\n\n## 7.1.0 (2023-12-06)\n\n* Automatically remove/add `asset_prefix` in Mosaic Backends\n\n## 7.0.1 (2023-10-17)\n\n* add `py.typed` file (https://peps.python.org/pep-0561)\n\n## 7.0.0 (2023-07-26)\n\n* update `morecantile` requirement to `>=5.0,<6.0`\n* update `rio-tiler` requirement to `>=6.0,<7.0`\n* update `pydantic` requirement to `~=2.0`\n\n## 6.2.0 (2023-07-11)\n\n* add `coord_crs` to `MosaicBackend.point()` method\n\n## 6.1.0 (2023-07-11)\n\n* add `tilematrixset` in `MosaicBackend.info()` response\n\n## 6.0.1 (2023-07-11)\n\n* fix `HttpBackend` post_init method\n\n## 6.0.0 (2023-07-10)\n\n* update `morecantile>=4.1,<5.0` and `rio-tiler>=5.0,<6.0` requirements\n\n* replace `supermercado` with [`supermorecado`](https://github.com/developmentseed/supermorecado) to burn geometries as tiles for different TMS\n\n* update MosaicJSON models to `0.0.3` specification (adds `tilematrixset`, `asset_type`, `asset_prefix`, `data_type`, `colormap` and `layers` attributes)\n\n* allow Mosaic creation using other TileMatrixSet (default is still `WebMercatorQuad`)\n\n* add `tms` support to MosaicBackend to read tile in other TMS than the mosaic TileMatrixSet\n\n    ```python\n    # Before\n    # Mosaic and output Tile in WebMercatorQuad\n    with MosaicBackend(\"mosaic.json\") as mosaic:\n        img, _ = mosaic.tile(0, 0, 0)\n\n    # Now\n    # Mosaic in WebMercatorQuad (default), output tile in WGS84\n    WGS1984Quad = morecantile.tms.get(\"WGS1984Quad\")\n    with MosaicBackend(\"mosaic.json\", tms=WGS1984Quad) as mosaic:\n        img, _ = mosaic.tile(0, 0, 0)\n    ```\n\n## 5.1.1 (2023-02-06)\n\n* Clip dataset bounds with of TMS bbox (author [@lseelenbinder](https://github.com/lseelenbinder), https://github.com/developmentseed/cogeo-mosaic/pull/200)\n\n## 5.1.0 (2023-01-20)\n\n* use `az://` prefix for private Azure Blob Storage Backend.\n\n## 5.0.0 (2022-11-21)\n\n* switch from pygeos to shapely>=2.0\n\n## 4.2.2 (2022-11-19)\n\n* remove useless file in package\n\n## 4.2.1 (2022-11-15)\n\n* add python 3.11 support\n\n## 4.2.0 (2022-10-24)\n\n* remove python 3.7 support\n* add python 3.10 support\n* switch to hatch build-system\n* update rio-tiler dependency to >=4.0.0a0\n\n## 4.1.1 (2022-10-21)\n\n* Add Azure Blob Storage backend (author [@christoe](https://github.com/christoe), https://github.com/developmentseed/cogeo-mosaic/pull/191)\n\n## 4.1.0 (2022-02-22)\n\n* remove `mercantile` and switch to morecantile>=3.1\n\n## 4.0.0 (2021-11-30)\n\n* no change since `4.0.0a2`\n\n## 4.0.0a2 (2021-11-22)\n\n* update rio-tiler requirement (`>=3.0.0a6`) and update backend reader type information\n\n## 4.0.0a1 (2021-11-18)\n\n* update rio-tiler requirement (`>=3.0.0a5`)\n* fix `MosaicBackend` to match Backend input names.\n\n## 4.0.0a0 (2021-10-20)\n\n* update morecantile requirement to >= 3.0\n* update rio-tiler requirement to >= 3.0 and update Backend's properties\n* switch from `requests` to `httpx`\n* add `BaseBackend.assets_for_bbox()` method (https://github.com/developmentseed/cogeo-mosaic/pull/184)\n\n**breaking changes**\n\n* remove `BaseBackend.metadata()` method (can be replaced by `BaseBackend.mosaic_def.dict(exclude={\"tiles\"})`)\n* remove `cogeo_mosaic.models.Metadata` model\n* remove python 3.6 support\n* `BaseBackend.path` -> `BaseBackend.input` attribute (`input` was added in rio-tiler BaseReader)\n\n## 3.0.2 (2021-07-08)\n\n* Add Google Cloud Storage (`gs://...`) mosaic backend (author [@AndreaGiardini](https://github.com/AndreaGiardini), https://github.com/developmentseed/cogeo-mosaic/pull/179)\n\n## 3.0.1 (2021-06-22)\n\n* Make sure to pass an openned file to click.Progressbar (https://github.com/developmentseed/cogeo-mosaic/pull/178)\n\n## 3.0.0 (2021-05-19)\n\n* update rio-tiler version dependencies\n* update pygeos dependency to >=0.10 which fix https://github.com/developmentseed/cogeo-mosaic/issues/81\n\n## 3.0.0rc2 (2021-02-25)\n\n**breaking**\n\n* `gzip` is now only applied if the path endswith `.gz`\n* remove `backend_options` attribute in base backends. This attribute was used to pass optional `gzip` option and/or STAC related options\n* STAC backends has additional attributes (`stac_api_options` and `mosaic_options`)\n\n\n## 3.0.0rc1 (2021-02-11)\n\n* add `SQLite` backend (https://github.com/developmentseed/cogeo-mosaic/pull/148)\n* fix cached responsed after updating a mosaic (https://github.com/developmentseed/cogeo-mosaic/pull/148/files#r557020660)\n* update mosaicJSON.bounds type definition to match rio-tiler BaseReader definition (https://github.com/developmentseed/cogeo-mosaic/issues/158)\n* add default bounds/minzoom/maxzoom values matching the mosaicjson default in the backends (https://github.com/developmentseed/cogeo-mosaic/pull/162)\n* raise an error when trying to pass `mosaic_def` in read-only backend (https://github.com/developmentseed/cogeo-mosaic/pull/162)\n* add `MemoryBackend` (https://github.com/developmentseed/cogeo-mosaic/pull/163)\n\n**breaking**\n\n* Updated the backends `.point()` methods to return a list in form of `[(asset1, values)]` (https://github.com/developmentseed/cogeo-mosaic/pull/168)\n\n## 3.0.0b1 (2020-12-18)\n\n* remove `overview` command (https://github.com/developmentseed/cogeo-mosaic/issues/71#issuecomment-748265645)\n* remove `rio-cogeo` dependencies\n* update rio-tiler version (`2.0.0rc4`)\n\n## 3.0.0a19 (2020-12-14)\n\n* Update to remove all calls to `rio_tiler.mercator` functions.\n\n## 3.0.0a18 (2020-11-24)\n\n* update Backend base class for rio-tiler 2.0.0rc3 (add `.feature()` method)\n\n## 3.0.0a17 (2020-11-09)\n\n* update for rio-tiler 2.0rc and add backend output models\n\n## 3.0.0a16 (2020-10-26)\n\n* raise `MosaicNotFoundError` when mosaic doesn't exists in the DynamoDB table.\n\n## 3.0.0a15 (2020-10-22)\n\n* fix typo in DynamoDB backend (https://github.com/developmentseed/cogeo-mosaic/pull/134)\n* rename `cogeo_mosaic/backends/http.py` -> `cogeo_mosaic/backends/web.py` to avoid conflicts (author [@kylebarron](https://github.com/kylebarron), https://github.com/developmentseed/cogeo-mosaic/pull/133)\n\n## 3.0.0a14 (2020-10-22)\n\n* add logger (`cogeo_mosaic.logger.logger`)\n* Update STACBackend to better handler paggination (ref: https://github.com/developmentseed/cogeo-mosaic/pull/125)\n* with change from [#125](https://github.com/developmentseed/cogeo-mosaic/issues/125), `stac_next_link_key` has be specified if you know the STAC API is using the latest specs:\n\n```python\nwith MosaicBackend(\n    f\"stac+{stac_endpoint}\",\n    query.copy(),\n    11,\n    14,\n    backend_options={\n        \"accessor\": lambda feature: feature[\"id\"],\n        \"stac_next_link_key\": \"next\",\n    }\n) as mosaic:\n```\n\n* add `to-geojson` CLI to create a GeoJSON from a mosaicJSON document (#128)\n* refactor internal cache (https://github.com/developmentseed/cogeo-mosaic/pull/131)\n* add progressbar for iterating over quadkeys when creating a mosaic (author [@kylebarron](https://github.com/kylebarron), https://github.com/developmentseed/cogeo-mosaic/pull/130)\n\n### Breaking changes\n\n* refactored DynamoDB backend to store multiple mosaics in one table (https://github.com/developmentseed/cogeo-mosaic/pull/127)\n    - new path schema `dynamodb://{REGION}?/{TABLE}:{MOSAIC}`\n\n* renamed exception `MosaicExists` to `MosaicExistsError`\n* renamed option `fetch_quadkeys` to `quadkeys` in DynamoDBBackend.info() method\n* add `quadkeys` option in `Backends.info()` to return (or not) the list of quadkeys (https://github.com/developmentseed/cogeo-mosaic/pull/129)\n* moves `get_assets` to the base Backend (https://github.com/developmentseed/cogeo-mosaic/pull/131)\n* remove multi_level mosaic support (https://github.com/developmentseed/cogeo-mosaic/issues/122)\n\n## 3.0.0a13 (2020-10-13)\n\n* add TMS in BaseBackend to align with rio-tiler BaseBackend.\n\n## 3.0.0a12 (2020-10-07)\n\n* remove pkg_resources (https://github.com/pypa/setuptools/issues/510)\n* raise error when `minimum_tile_cover` is > 1 (https://github.com/developmentseed/cogeo-mosaic/issues/117)\n* fix wrong indices sorting in default_filter (https://github.com/developmentseed/cogeo-mosaic/issues/118)\n\nNote: We changed the versioning scheme to {major}.{minor}.{path}{pre}{prenum}\n\n## 3.0a11 (2020-09-21)\n\n* Raise Exception when trying to overwrite a mosaic (#112)\n* Add `reverse` option in `.tile` and `.point` to get values from assets in reversed order.\n\n## 3.0a10 (2020-08-24)\n\n* Allow PointOutsideBounds exception for `point` method (#108)\n\n## 3.0a9 (2020-08-24)\n\n* BaseBackend.center returns value from the mosaic definition (#105)\n\n## 3.0a8 (2020-08-21)\n\n* BaseBackend is now a subclass of rio-tiler.io.base.BaseReader (add minzoom, maxzoom, bounds properties and info method)\n* use `attr` to define backend classes\n\n### Breaking changes\n* `backend_options` is now used to pass options (*kwargs) to the `_read` method\n\n## 3.0a7 (2020-07-31)\n\n* update to rio-tiler 2.0b5\n\n### Breaking changes\n* 'value' -> 'values' in MosaicBackend.point output (#98)\n\n## 3.0a6 (2020-07-31)\n\n* Use environement variable to set/disable cache (#93, autho [@geospatial-jeff](https://github.com/geospatial-jeff))\n* Allow Threads configuration for overview command (author [@kylebarron](https://github.com/kylebarron))\n* add --in-memory/--no-in-memory to control temporary files creation for `overview` function.\n* allow pixel_selection method options for `overview` function.\n* update to rio-tiler 2.0b4\n* use new COGReader and STACReader to add .tile and .point methods directly in the backends\n\n### Breaking changes\n* backend.tile -> backend.assets_for_tile\n* backend.point -> backend.assets_for_point\n\n## 3.0a5 (2020-06-29)\n\n* remove FTP from supported backend (#87, author [@geospatial-jeff](https://github.com/geospatial-jeff))\n* add backend CRUD exceptions (#86, author [@geospatial-jeff](https://github.com/geospatial-jeff))\n\n## 3.0a4 (2020-06-25)\n\n* add STACBackend (#82)\n* fix backends caching and switch to TTL cache (#83)\n\n## 3.0a3 (2020-05-01)\n\n* add Upload CLI (#74, author [@kylebarron](https://github.com/kylebarron))\n* fix boto3 dynamodb exception (#75)\n\n## 3.0a2 (2020-05-01)\n\n* Better mosaicJSON model testing and default center from bounds (#73, author [@geospatial-jeff](https://github.com/geospatial-jeff))\n\n## 3.0a1 (2020-05-01)\n\nThis is a major version, meaning a lot of refactoring was done and may lead to breaking changes.\n\n* add quadkey_zoom option in CLI (#41, author [@kylebarron](https://github.com/kylebarron))\n* use R-tree from pygeos for testing intersections (#43, author [@kylebarron](https://github.com/kylebarron))\n\n### Breaking changes\n* added BackendStorage for dynamodb, s3, file and http (with [@kylebarron](https://github.com/kylebarron))\n* added MosaicJSON pydantic model for internal mosaicjson representation (with [@kylebarron](https://github.com/kylebarron) and [@geospatial-jeff](https://github.com/geospatial-jeff))\n\n## 2.0.1 (2020-01-28)\n\n* Bug fix, use pygeos from pypi instead of git repo\n\n## 2.0.0 (2020-01-28) - Major refactor\n\n* remove stack related code (lambda handler, serverless)\n* switch to pygeos (#24)\n* bug fixes\n* add `last` pixel_method\n\n## 1.0.0 (2019-12-13)\n\n* add tif output\n* fix overview creation\n* add other Web templates\n\n## 0.3.0 (2019-11-07)\n\n* use aws lambda layer\n* add `update_mosaic` utility function\n* add `/tiles/point` endpoint to get points values from a mosaic\n* add logs for mosaic creation\n* add custom pixel methods\n* add custom color maps\n\n### Breaking changes\n* rename `/mosaic/info/<mosaicid>` to `/mosaic/<mosaicid>/info`\n\n## 0.2.0 (2019-09-30)\n\n* update for lambda-proxy~=5.0 (#15)\n* add `minimum_tile_cover` option for mosaic creation (#16)\n* add `tile_cover_sort` option (#16)\n* add verbosity for cli\n\n## 0.1.0 (2019-09-05)\n\n* add /create.html endpoint (#14)\n* update to remotepixel/amazonlinux docker image\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2019 Development Seed\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "CLI and Backends to work with MosaicJSON.",
    "version": "7.1.0",
    "project_urls": {
        "Changelog": "https://developmentseed.org/cogeo-mosaic/release-notes/",
        "Documentation": "https://developmentseed.org/cogeo-mosaic/",
        "Homepage": "https://github.com/developmentseed/cogeo-mosaic",
        "Issues": "https://github.com/developmentseed/cogeo-mosaic/issues",
        "Source": "https://github.com/developmentseed/cogeo-mosaic"
    },
    "split_keywords": [
        "cog",
        "mosaicjson"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c3d08268e47080b81b4a6b1cd5d794d41ce557cae41be535f0c944eeedb14f7d",
                "md5": "600186b7e0e19ccbefa5bda9cab5a015",
                "sha256": "24c4fd1e977d851f8389efb244f10e6d17e6b6d24202aa7484fc618d519b0cbb"
            },
            "downloads": -1,
            "filename": "cogeo_mosaic-7.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "600186b7e0e19ccbefa5bda9cab5a015",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 39449,
            "upload_time": "2023-12-06T19:21:57",
            "upload_time_iso_8601": "2023-12-06T19:21:57.070204Z",
            "url": "https://files.pythonhosted.org/packages/c3/d0/8268e47080b81b4a6b1cd5d794d41ce557cae41be535f0c944eeedb14f7d/cogeo_mosaic-7.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6bf58fdbe05929cb9a42ccc37c86b65fbc2836520b102a8476f066fe1ca15a65",
                "md5": "94d99710b7ce590f6ad9e9882fe56049",
                "sha256": "4b73f7555e13890f03c6f50a124b05ca916631a8c502472eac03ae69a25fa152"
            },
            "downloads": -1,
            "filename": "cogeo_mosaic-7.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "94d99710b7ce590f6ad9e9882fe56049",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 32631,
            "upload_time": "2023-12-06T19:21:59",
            "upload_time_iso_8601": "2023-12-06T19:21:59.069487Z",
            "url": "https://files.pythonhosted.org/packages/6b/f5/8fdbe05929cb9a42ccc37c86b65fbc2836520b102a8476f066fe1ca15a65/cogeo_mosaic-7.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-06 19:21:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "developmentseed",
    "github_project": "cogeo-mosaic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cogeo-mosaic"
}
        
Elapsed time: 0.14921s