-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support OGC API styles in collections
contains smaller improvements: - remove redundant listAllStyles - merge getStyleMetadata into getStyle and handle fallback internally
- Loading branch information
1 parent
86bb906
commit e032389
Showing
5 changed files
with
251 additions
and
97 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
fixtures/ogc-api/sample-data/collections/airports/styles/Tritanopia/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"title" : "Tritanopia", | ||
"links" : [ { | ||
"rel" : "self", | ||
"type" : "application/json", | ||
"title" : "This document", | ||
"href" : "https://my.server.org/sample-data/collections/airports/styles/Tritanopia/metadata?f=json" | ||
}, { | ||
"rel" : "alternate", | ||
"type" : "text/html", | ||
"title" : "This document as HTML", | ||
"href" : "https://my.server.org/sample-data/collections/airports/styles/Tritanopia/metadata?f=html" | ||
} ], | ||
"id" : "Tritanopia", | ||
"scope" : "style", | ||
"stylesheets" : [ { | ||
"title" : "QGIS", | ||
"version" : "3.16", | ||
"specification" : "https://docs.qgis.org/3.16/en/docs/user_manual/appendices/qgis_file_formats.html#qml-the-qgis-style-file-format", | ||
"native" : true, | ||
"link" : { | ||
"rel" : "stylesheet", | ||
"type" : "application/vnd.qgis.qml", | ||
"title" : "Style in format 'QGIS'", | ||
"href" : "https://my.server.org/sample-data/collections/airports/styles/Tritanopia?f=qml" | ||
} | ||
}, { | ||
"title" : "SLD 1.0", | ||
"version" : "1.0", | ||
"specification" : "https://www.ogc.org/standards/sld", | ||
"native" : true, | ||
"link" : { | ||
"rel" : "stylesheet", | ||
"type" : "application/vnd.ogc.sld+xml;version=1.0", | ||
"title" : "Style in format 'SLD 1.0'", | ||
"href" : "https://my.server.org/sample-data/collections/airports/styles/Tritanopia?f=sld10" | ||
} | ||
} ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.