Files
pygeoapi/tests/data/tiles/ne_110m_lakes/metadata.json
T
Francesco Bartoli 4f52536051 Add tiles ogc api (#419)
* Add ogc api tiles implementation

* Add json response to tiles endpoint

* Return correct json payload

* Fix url generation

* Add vector tile layer with clickable items

* Fix typo

* Fix oafeat collection tiles link

* Add format to metadata link

* Fix almost all flake8 errors

* Fix metadata link

* Add routes to serving tiles

* Refactor tile implementation with an own module

* Add http client for mvt

* Fix visibility of tiles template

* Fix tiles in collection item page

* Change source to data coherently with stac provider

* Fix flake8 errors

* Fix test for conformance classes

* Fix flake8 errors


Fix flake8 errors

* Refactor to align with new configuration structure

* Fix MVT plugin name

* Add openapi tiles path and schemas

* Add ogc api tiles implementation

* Add json response to tiles endpoint

* Return correct json payload

* Fix url generation

* Add vector tile layer with clickable items

* Fix typo

* Fix oafeat collection tiles link

* Add format to metadata link

* Fix almost all flake8 errors

* Fix metadata link

* Add routes to serving tiles

* Refactor tile implementation with an own module

* Add http client for mvt

* Fix visibility of tiles template

* Fix tiles in collection item page

* Change source to data coherently with stac provider

* Fix flake8 errors

* Fix test for conformance classes

* Fix flake8 errors


Fix flake8 errors

* Refactor to align with new configuration structure

* Fix MVT plugin name

* Add openapi tiles path and schemas

* Fix flake errors

* Fix merge and tests

* Add test configuration and data for tiles

* Change mapbox vector tile provider name

* Fix provider inspection and filter

* Fix tiles rendering in collection page

* Add mimetype to the mvt provider

* Fix mimetype

* Rename functions accordingly to singular and plural forms

* Fix tiling schemes in tiles template

* Serve mvt through the pygeoapi route

* Refactor and add test for collection tiles

* Fix test for not being tiles

* Remove httpx dependency

* Fix missing comma

* Fix tests

* Fix flake8

* Add initial metadata implementation

* Fix route with preprocess

* Fix tiles template


Fix tiles template

* Complete tileset api and template

* Fix flake8

* Complete metadata with tilejson response

* Add support for local vector tiles

* Fix flake8

* Fix plugin tile object and provider name

* Add a todo comment

* testing alternate plugin setup, fix some HTML, add OpenAPI endpoint

* remove URI template

* add docs

* Fix failing test

* Fix flake8 error

Co-authored-by: Francesco Bartoli <francesco.bartoli@wfp.org>
Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
2020-09-20 09:50:40 -04:00

15 lines
3.0 KiB
JSON

{
"name": "tests/data/tiles/ne_110m_lakes",
"description": "tests/data/tiles/ne_110m_lakes",
"version": "2",
"minzoom": "0",
"maxzoom": "5",
"center": "-84.375000,44.951199,5",
"bounds": "-124.953634,-16.536406,109.929807,66.969298",
"type": "overlay",
"format": "pbf",
"generator": "tippecanoe v1.36.0",
"generator_options": "tippecanoe -e tests/data/tiles/ne_110m_lakes -f -z5 --drop-densest-as-needed --extend-zooms-if-still-dropping --no-tile-compression tests/data/ne_110m_lakes.geojson",
"json": "{\"vector_layers\": [ { \"id\": \"ne_110m_lakes\", \"description\": \"\", \"minzoom\": 0, \"maxzoom\": 5, \"fields\": {\"admin\": \"String\", \"featureclass\": \"String\", \"id\": \"Number\", \"name\": \"String\", \"name_alt\": \"String\", \"scalerank\": \"Number\"} } ],\"tilestats\": {\"layerCount\": 1,\"layers\": [{\"layer\": \"ne_110m_lakes\",\"count\": 25,\"geometry\": \"Polygon\",\"attributeCount\": 6,\"attributes\": [{\"attribute\": \"admin\",\"count\": 1,\"type\": \"string\",\"values\": [\"admin-0\"]},{\"attribute\": \"featureclass\",\"count\": 1,\"type\": \"string\",\"values\": [\"Lake\"]},{\"attribute\": \"id\",\"count\": 25,\"type\": \"number\",\"values\": [0,1,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23,24,3,4,5,6,7,8,9],\"min\": 0,\"max\": 24},{\"attribute\": \"name\",\"count\": 25,\"type\": \"string\",\"values\": [\"Aral Sea\",\"Balqash Köli\",\"Great Bear Lake\",\"Great Salt Lake\",\"Great Slave Lake\",\"L. Erie\",\"L. Ontario\",\"Lago Titicaca\",\"Lago de Nicaragua\",\"Lake Athabasca\",\"Lake Baikal\",\"Lake Huron\",\"Lake Ladoga\",\"Lake Malawi\",\"Lake Michigan\",\"Lake Okeechobee\",\"Lake Onega\",\"Lake Superior\",\"Lake Tana\",\"Lake Tanganyika\",\"Lake Victoria\",\"Lake Winnipeg\",\"Lake Winnipegosis\",\"Reindeer Lake\",\"Vänern\"]},{\"attribute\": \"name_alt\",\"count\": 24,\"type\": \"string\",\"values\": [\"Lake\\u000dBalkhash\",\"Lake Nyasa\",\"https://en.wikipedia.org/wiki/Aral_Sea\",\"https://en.wikipedia.org/wiki/Great_Bear_Lake\",\"https://en.wikipedia.org/wiki/Great_Salt_Lake\",\"https://en.wikipedia.org/wiki/Great_Slave_Lake\",\"https://en.wikipedia.org/wiki/Lake_Athabasca\",\"https://en.wikipedia.org/wiki/Lake_Baikal\",\"https://en.wikipedia.org/wiki/Lake_Erie\",\"https://en.wikipedia.org/wiki/Lake_Huron\",\"https://en.wikipedia.org/wiki/Lake_Ladoga\",\"https://en.wikipedia.org/wiki/Lake_Michigan\",\"https://en.wikipedia.org/wiki/Lake_Nicaragua\",\"https://en.wikipedia.org/wiki/Lake_Okeechobee\",\"https://en.wikipedia.org/wiki/Lake_Onega\",\"https://en.wikipedia.org/wiki/Lake_Ontario\",\"https://en.wikipedia.org/wiki/Lake_Superior\",\"https://en.wikipedia.org/wiki/Lake_Tana\",\"https://en.wikipedia.org/wiki/Lake_Tanganyika\",\"https://en.wikipedia.org/wiki/Lake_Titicaca\",\"https://en.wikipedia.org/wiki/Lake_Victoria\",\"https://en.wikipedia.org/wiki/Lake_Winnipeg\",\"https://en.wikipedia.org/wiki/Lake_Winnipegosis\",\"https://en.wikipedia.org/wiki/Reindeer_Lake\"]},{\"attribute\": \"scalerank\",\"count\": 2,\"type\": \"number\",\"values\": [0,1],\"min\": 0,\"max\": 1}]}]}}"
}