-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read Tileset information from OGC API Tiles #7970
Comments
Note I get the same result pointing GDAL directly to the collection (which also has a
Neither works, but the server responses are fine.
That is an optional thing for requesting a single Feature ( |
@rouault My hunch is that GDAL is looking for a As a general rule for OGC APIs, if a single URI supports multiple formats using HTTP content negotiation, a single link can be provided without specifying a e.g., see OGC API - Tiles 8.2.2 Requirement 8 F (about the tiles template, but same idea):
|
…lication/json) is missing, using Accept content negotiation (fixes OSGeo#7970)
@jerstlouis @rouault apologies to put this here, but I am unsure whether this is an ogr or pygeoapi issue. This kind of works:
But then it fails because it cannot find a link for the tilese on the tiles page:
This is the offending tileset:
On the links it exposes a JSON
I have been looking through the OGC 2D TMS spec, but I cannot find the explanation for this. Is this mandatory? I am on GDAL 3.8.0dev-360a9aea02, released 2023/06/24 (debug build). |
I realized that ogr is failing because of something else. The tileset links are missing from the TMS page: https://demo.pygeoapi.io/master/collections/lakes/tiles/WorldCRS84Quad?f=json |
@doublebyte1 That response is not at all the 2D Tile Matrix Set and Tileset metadata JSON encoding. It seems to be TileJSON, although I believe the bounds should be an array, not a string in TileJSON, so probably also invalid for TileJSON 3.0.0. |
@jerstlouis Thank You, I am investigating that. Not related to the error, but it guess it is still useful to have the http://www.opengis.net/def/rel/ogc/1.0/tiling-scheme link relation type to describe the TMS? |
@doublebyte1 Yes, Requirement 8D. That is the most important thing that every tileset metadata needs to include: a link to the 2DTMS definition (regardless of whether it is a custom 2DTMS or a registered one). |
Thanks a lot, @jerstlouis ! I address it here: geopython/pygeoapi#1290 👍🏽 |
…lication/json) is missing, using Accept content negotiation (fixes OSGeo#7970)
…lication/json) is missing, using Accept content negotiation (fixes OSGeo#7970)
ogrinfo should be able to read the information about a vector tile dataset, when pointed to the collection page.
This works as expected:
./ogrinfo -oo API=TILES "OGCAPI:https://maps.gnosis.earth/ogcapi/collections/Daraa:AgricultureSrf"
INFO: Open of
OGCAPI:https://maps.gnosis.earth/ogcapi/collections/Daraa:AgricultureSrf' using driver
OGCAPI' successful.However, this does not work
./ogrinfo -oo API=TILES "OGCAPI:https://demo.ldproxy.net/daraa"
ERROR 1: API TILES requested, but not available
ERROR 1: API TILES requested, but not available
ogrinfo failed - unable to open 'OGCAPI:https://demo.ldproxy.net/daraa'.
Despite the dataset being advertised here:
In the case of gnosis, the links to the actual data are already advertised in this page, but is that required?
I think that the client should follow the link to the tileset metadata on the next page, instead of giving up here.
@rouault @jerstlouis @cportele
Operating system
Ubuntu 22.04.2 LTS
GDAL version and provenance
GDAL 3.8.0dev-23d309f3f4, released 2023/05/02 (debug build)
The text was updated successfully, but these errors were encountered: