From 6d4844b750888ad8a71ae20d08200f69381fb5f3 Mon Sep 17 00:00:00 2001 From: Joachim Ungar Date: Wed, 3 Nov 2021 16:33:29 +0100 Subject: [PATCH] bump version; update changelog & docs; --- CHANGELOG.rst | 14 ++++ doc/source/apidoc/mapchete.rst | 1 + doc/source/apidoc/mapchete.testing.rst | 7 ++ mapchete/__init__.py | 2 +- tmp/cleantopo_br/cleantopo_br.json | 107 +++++++++++++++++++++++++ 5 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 doc/source/apidoc/mapchete.testing.rst create mode 100644 tmp/cleantopo_br/cleantopo_br.json diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 43bb3dbb..f51e44be 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,20 @@ Changelog ######### + +---------------------- +2021.11.0 - 2021-11-03 +---------------------- + +* CLI + * ``convert``: enable ``--output-pyramid`` to read custom grid from JSON file + * ``stac create-item``: add ``--relative-paths`` flag for asset URL + +* package + * add ``mapchete.testing`` including convenience tools + * use temporary directories for outputs where possible when testing processes + + ---------------------- 2021.10.3 - 2021-10-19 ---------------------- diff --git a/doc/source/apidoc/mapchete.rst b/doc/source/apidoc/mapchete.rst index b6f6556b..20b12c5e 100644 --- a/doc/source/apidoc/mapchete.rst +++ b/doc/source/apidoc/mapchete.rst @@ -25,6 +25,7 @@ Submodules mapchete.index mapchete.log mapchete.stac + mapchete.testing mapchete.tile mapchete.validate diff --git a/doc/source/apidoc/mapchete.testing.rst b/doc/source/apidoc/mapchete.testing.rst new file mode 100644 index 00000000..44ac7919 --- /dev/null +++ b/doc/source/apidoc/mapchete.testing.rst @@ -0,0 +1,7 @@ +mapchete.testing module +======================= + +.. automodule:: mapchete.testing + :members: + :undoc-members: + :show-inheritance: diff --git a/mapchete/__init__.py b/mapchete/__init__.py index 29f0d379..c88b5c9b 100644 --- a/mapchete/__init__.py +++ b/mapchete/__init__.py @@ -8,7 +8,7 @@ __all__ = ["open", "count_tiles", "Mapchete", "MapcheteProcess", "ProcessInfo", "Timer"] -__version__ = "2021.10.3" +__version__ = "2021.11.0" logger = logging.getLogger(__name__) diff --git a/tmp/cleantopo_br/cleantopo_br.json b/tmp/cleantopo_br/cleantopo_br.json new file mode 100644 index 00000000..79d32e18 --- /dev/null +++ b/tmp/cleantopo_br/cleantopo_br.json @@ -0,0 +1,107 @@ +{ + "type": "Feature", + "stac_version": "1.0.0", + "id": "cleantopo_br", + "properties": { + "datetime": "2021-11-03T14:53:49.247332Z", + "collection": "cleantopo_br", + "tiles:tile_matrix_links": { + "WorldCRS84Quad": { + "url": "#WorldCRS84Quad", + "limits": { + "5": { + "min_tile_col": 0, + "max_tile_col": 7, + "min_tile_row": 0, + "max_tile_row": 3 + } + } + } + }, + "tiles:tile_matrix_sets": { + "WorldCRS84Quad": { + "type": "TileMatrixSetType", + "title": "CRS84 for the World", + "identifier": "WorldCRS84Quad", + "supportedCRS": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "wellKnownScaleSet": "http://www.opengis.net/def/wkss/OGC/1.0/GoogleCRS84Quad", + "tileMatrix": [ + { + "type": "TileMatrixType", + "identifier": "5", + "scaleDenominator": 8735660.375448687, + "topLeftCorner": [ + -180.0, + 90.0 + ], + "tileWidth": 2048, + "tileHeight": 2048, + "matrixWidth": 8, + "matrixHeight": 4 + } + ], + "boundingBox": { + "type": "BoundingBoxType", + "crs": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "lowerCorner": [ + -180.0, + -90.0 + ], + "upperCorner": [ + 180.0, + 90.0 + ] + } + } + } + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + 180.0, + -90.0 + ], + [ + -180.0, + -90.0 + ], + [ + -180.0, + 90.0 + ], + [ + 180.0, + 90.0 + ], + [ + 180.0, + -90.0 + ] + ] + ] + }, + "links": [ + { + "rel": "self", + "href": "/home/ungarj/git/mapchete/tmp/cleantopo_br/cleantopo_br.json" + } + ], + "assets": {}, + "bbox": [ + -180.0, + -90.0, + 180.0, + 90.0 + ], + "stac_extensions": [ + "tiled-assets" + ], + "asset_templates": { + "bands": { + "href": "tmp/cleantopo_br/{TileMatrix}/{TileRow}/{TileCol}.tif", + "type": null + } + } +} \ No newline at end of file