Skip to content

Commit

Permalink
Merge pull request #43 from LukasLohoff/ogc-styles
Browse files Browse the repository at this point in the history
Support for OGC API Styles
  • Loading branch information
jahow authored Jul 16, 2024
2 parents 4369f6c + 5103e56 commit 52f33cd
Show file tree
Hide file tree
Showing 13 changed files with 2,986 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"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"
}
}
]
}
33 changes: 33 additions & 0 deletions fixtures/ogc-api/sample-data/styles/Deuteranopia/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": "Deuteranopia",
"links": [
{
"rel": "self",
"type": "application/json",
"title": "This document",
"href": "http://local/zoomstack/styles/Deuteranopia/metadata?f=json"
},
{
"rel": "alternate",
"type": "text/html",
"title": "This document as HTML",
"href": "http://local/zoomstack/styles/Deuteranopia/metadata?f=html"
}
],
"id": "Deuteranopia",
"scope": "style",
"stylesheets": [
{
"title": "ArcGIS",
"version": "n/a",
"specification": "https://www.esri.com/",
"native": true,
"link": {
"rel": "stylesheet",
"type": "application/vnd.esri.lyr",
"title": "Style in format 'ArcGIS'",
"href": "http://local/zoomstack/styles/Deuteranopia?f=lyr"
}
}
]
}
Loading

0 comments on commit 52f33cd

Please sign in to comment.