Package: cogeo-mosaic
cogeo-mosaicCreate mosaics of Cloud Optimized GeoTIFF based on themosaicJSONspecification.Documentation:https://developmentseed.org/cogeo-mosaic/Source Code:https://github.com/developmentseed/cogeo-mosaicRead the official announcementhttps://medium.com/devseed/cog-talk-part-2-mosaics-bbbf474e66dfInstallpython-mpipinstallpip-U
python-mpipinstallcogeo-mosaic--pre# Or from sourcepython-mpipinstallgit+http://github.com/developmentseed/cogeo-mosaicNotes:Starting with version 5.0, pygeos has been replaced by shapely and thus makeslibgeosa requirement.
Shapely wheels should be available for most environment, if not, you'll need to have libgeos installed.See it in actionTiTiler: A lightweight Cloud Optimized GeoTIFF dynamic tile server (COG, STAC and MosaicJSON).Contribution & DevelopmentSeeCONTRIBUTING.mdLicenseSeeLICENSEAuthorsCreated byDevelopment SeedSeecontributorsfor a listing of individual contributors.Changelog7.1.0 (2023-12-06)Automatically remove/addasset_prefixin Mosaic Backends7.0.1 (2023-10-17)addpy.typedfile (https://peps.python.org/pep-0561)7.0.0 (2023-07-26)updatemorecantilerequirement to>=5.0,<6.0updaterio-tilerrequirement to>=6.0,<7.0updatepydanticrequirement to~=2.06.2.0 (2023-07-11)addcoord_crstoMosaicBackend.point()method6.1.0 (2023-07-11)addtilematrixsetinMosaicBackend.info()response6.0.1 (2023-07-11)fixHttpBackendpost_init method6.0.0 (2023-07-10)updatemorecantile>=4.1,<5.0andrio-tiler>=5.0,<6.0requirementsreplacesupermercadowithsupermorecadoto burn geometries as tiles for different TMSupdate MosaicJSON models to0.0.3specification (addstilematrixset,asset_type,asset_prefix,data_type,colormapandlayersattributes)allow Mosaic creation using other TileMatrixSet (default is stillWebMercatorQuad)addtmssupport to MosaicBackend to read tile in other TMS than the mosaic TileMatrixSet# Before# Mosaic and output Tile in WebMercatorQuadwithMosaicBackend("mosaic.json")asmosaic:img,_=mosaic.tile(0,0,0)# Now# Mosaic in WebMercatorQuad (default), output tile in WGS84WGS1984Quad=morecantile.tms.get("WGS1984Quad")withMosaicBackend("mosaic.json",tms=WGS1984Quad)asmosaic:img,_=mosaic.tile(0,0,0)5.1.1 (2023-02-06)Clip dataset bounds with of TMS bbox (author@lseelenbinder,https://github.com/developmentseed/cogeo-mosaic/pull/200)5.1.0 (2023-01-20)useaz://prefix for private Azure Blob Storage Backend.5.0.0 (2022-11-21)switch from pygeos to shapely>=2.04.2.2 (2022-11-19)remove useless file in package4.2.1 (2022-11-15)add python 3.11 support4.2.0 (2022-10-24)remove python 3.7 supportadd python 3.10 supportswitch to hatch build-systemupdate rio-tiler dependency to >=4.0.0a04.1.1 (2022-10-21)Add Azure Blob Storage backend (author@christoe,https://github.com/developmentseed/cogeo-mosaic/pull/191)4.1.0 (2022-02-22)removemercantileand switch to morecantile>=3.14.0.0 (2021-11-30)no change since4.0.0a24.0.0a2 (2021-11-22)update rio-tiler requirement (>=3.0.0a6) and update backend reader type information4.0.0a1 (2021-11-18)update rio-tiler requirement (>=3.0.0a5)fixMosaicBackendto match Backend input names.4.0.0a0 (2021-10-20)update morecantile requirement to >= 3.0update rio-tiler requirement to >= 3.0 and update Backend's propertiesswitch fromrequeststohttpxaddBaseBackend.assets_for_bbox()method (https://github.com/developmentseed/cogeo-mosaic/pull/184)breaking changesremoveBaseBackend.metadata()method (can be replaced byBaseBackend.mosaic_def.dict(exclude={"tiles"}))removecogeo_mosaic.models.Metadatamodelremove python 3.6 supportBaseBackend.path->BaseBackend.inputattribute (inputwas added in rio-tiler BaseReader)3.0.2 (2021-07-08)Add Google Cloud Storage (gs://...) mosaic backend (author@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 dependenciesupdate pygeos dependency to >=0.10 which fixhttps://github.com/developmentseed/cogeo-mosaic/issues/813.0.0rc2 (2021-02-25)breakinggzipis now only applied if the path endswith.gzremovebackend_optionsattribute in base backends. This attribute was used to pass optionalgzipoption and/or STAC related optionsSTAC backends has additional attributes (stac_api_optionsandmosaic_options)3.0.0rc1 (2021-02-11)addSQLitebackend (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 passmosaic_defin read-only backend (https://github.com/developmentseed/cogeo-mosaic/pull/162)addMemoryBackend(https://github.com/developmentseed/cogeo-mosaic/pull/163)breakingUpdated 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)removeoverviewcommand (https://github.com/developmentseed/cogeo-mosaic/issues/71#issuecomment-748265645)removerio-cogeodependenciesupdate rio-tiler version (2.0.0rc4)3.0.0a19 (2020-12-14)Update to remove all calls torio_tiler.mercatorfunctions.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 models3.0.0a16 (2020-10-26)raiseMosaicNotFoundErrorwhen 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)renamecogeo_mosaic/backends/http.py->cogeo_mosaic/backends/web.pyto avoid conflicts (author@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,stac_next_link_keyhas be specified if you know the STAC API is using the latest specs:withMosaicBackend(f"stac+{stac_endpoint}",query.copy(),11,14,backend_options={"accessor":lambdafeature:feature["id"],"stac_next_link_key":"next",})asmosaic:addto-geojsonCLI 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/developmentseed/cogeo-mosaic/pull/130)Breaking changesrefactored DynamoDB backend to store multiple mosaics in one table (https://github.com/developmentseed/cogeo-mosaic/pull/127)new path schemadynamodb://{REGION}?/{TABLE}:{MOSAIC}renamed exceptionMosaicExiststoMosaicExistsErrorrenamed optionfetch_quadkeystoquadkeysin DynamoDBBackend.info() methodaddquadkeysoption inBackends.info()to return (or not) the list of quadkeys (https://github.com/developmentseed/cogeo-mosaic/pull/129)movesget_assetsto 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 whenminimum_tile_coveris > 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)Addreverseoption in.tileand.pointto get values from assets in reversed order.3.0a10 (2020-08-24)Allow PointOutsideBounds exception forpointmethod (#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)useattrto define backend classesBreaking changesbackend_optionsis now used to pass options (*kwargs) to the_readmethod3.0a7 (2020-07-31)update to rio-tiler 2.0b5Breaking 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 foroverviewfunction.allow pixel_selection method options foroverviewfunction.update to rio-tiler 2.0b4use new COGReader and STACReader to add .tile and .point methods directly in the backendsBreaking changesbackend.tile -> backend.assets_for_tilebackend.point -> backend.assets_for_point3.0a5 (2020-06-29)remove FTP from supported backend (#87, author@geospatial-jeff)add backend CRUD exceptions (#86, author@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)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 changesadded BackendStorage for dynamodb, s3, file and http (with@kylebarron)added MosaicJSON pydantic model for internal mosaicjson representation (with@kylebarronand@geospatial-jeff)2.0.1 (2020-01-28)Bug fix, use pygeos from pypi instead of git repo2.0.0 (2020-01-28) - Major refactorremove stack related code (lambda handler, serverless)switch to pygeos (#24)bug fixesaddlastpixel_method1.0.0 (2019-12-13)add tif outputfix overview creationadd other Web templates0.3.0 (2019-11-07)use aws lambda layeraddupdate_mosaicutility functionadd/tiles/pointendpoint to get points values from a mosaicadd logs for mosaic creationadd custom pixel methodsadd custom color mapsBreaking changesrename/mosaic/info/<mosaicid>to/mosaic/<mosaicid>/info0.2.0 (2019-09-30)update for lambda-proxy~=5.0 (#15)addminimum_tile_coveroption for mosaic creation (#16)addtile_cover_sortoption (#16)add verbosity for cli0.1.0 (2019-09-05)add /create.html endpoint (#14)update to remotepixel/amazonlinux docker image