Skip to content

Stable URL for tile matrix sets #83

@tschaub

Description

@tschaub

The tile matrix set registry links to pages describing each of the registered tile matrix sets. For example, WebMercatorQuad is described here: https://defs.opengis.net/vocprez/object?uri=http%3A//www.opengis.net/def/tilematrixset/OGC/1.0/WebMercatorQuad. This page links to GitHub for the actual tile matrix set definition: https://raw.githubusercontent.com/opengeospatial/2D-Tile-Matrix-Set/master/registry/json/WebMercatorQuad.json

This URL includes the name of the default branch (master). So if this repo ever decides to update the name of the default branch (e.g. to main), then the URL above will no longer resolve to the tile matrix set definition. An improvement would be to make use of git tags for releases. Then there would be a URL for the tag that would be stable. For example https://raw.githubusercontent.com/opengeospatial/2D-Tile-Matrix-Set/v2.0.0/registry/json/WebMercatorQuad.json if this repo used tags and had tagged v2.0.0.

It feels like it would also be a good idea for things like the definition for tile matrix sets in OGC's registry to be hosted by OGC instead of by GitHub. One benefit of using GitHub is that it is CORS-enabled (e.g. responses include access-control-allow-origin: *). The ogc.org hosted resources I've seen are not CORS-enabled. So it would only make sense to move the definitions to ogc.org if 1) they used https and 2) they were CORS-friendly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions