FHNW-IVGI / Geoharvester

NDGI Project Geoharvester
10 stars 1 forks source link

Registering a new WFS/WMS/WMTS: Clarifications and Adding "OSM Swiss Style" WMTS #93

Closed sfkeller closed 4 months ago

sfkeller commented 7 months ago

The following questions:

I assume that the "GeoHarvester POC" is not limited to open government data only, because the GeoHarvester "Imprint" menu says "public geoservices". Therefore:

Question 1: How can I register a new public WFS/WMS/WMTS? Can you clarify this also e.g. at menu "Documentation"?

Question 2: I want to register the "OSM Swiss Style" as an XYZ variant of WMTS: https://tile.osm.ch/switzerland/{z}/{x}/{y}.png . See https://sosm.ch/projects/services/ . This is a free and public geoservice provided by the Swiss OpenStreetMap Association (SOSM).

p1d1d1 commented 7 months ago

Does the services provide a capability file?

sfkeller commented 7 months ago

Yes, I think so. Else we add a fixed one.

sfkeller commented 7 months ago

Does the services provide a capability file?

Was this a "Yes, you can register... given an URL which points to a WMTS/XYZ capability file"?

p1d1d1 commented 7 months ago

You can either:

add an issue asking to register the service and provide the URL to the capability file (actually add the URL in this ticket would also be ok)

or:

sfkeller commented 7 months ago

You can either

Many thanks! Looking at sources.csv there is a "Description" field and given following services:

  1. Stadt Zürich WMTS: https://www.ogc.stadt-zuerich.ch/mapproxy/wmts/1.0.0/WMTSCapabilities.xml
  2. Stadt Zürich WMS: https://www.ogc.stadt-zuerich.ch/mapproxy/service?SERVICE=WMS&REQUEST=GetCapabilities
  3. Stadt Bern WMTS: https://map.bern.ch/arcgis/rest/services/Geoportal/STEK2016_Entwicklungspotenziale/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
  4. ASIT WMTS: https://wmts.asit-asso.ch/wmts/1.0.0/WMTSCapabilities.xml

What is the description value for City of Zürich or Bern, and for Swiss OpenStreetMap Association Switzerland (SOSM)?

p1d1d1 commented 7 months ago

I'd say ST_ZU, ST_BE, ASIT, SOSM

sfkeller commented 7 months ago

Ok, here are my additions to sources.csv:

"SOSM","https://tile.osm.ch/1.0.0/WMTSCapabilities.xml"
"ST_ZH","https://www.ogc.stadt-zuerich.ch/mapproxy/wmts/1.0.0/WMTSCapabilities.xml"
"ST_ZH","https://www.ogc.stadt-zuerich.ch/mapproxy/service?SERVICE=WMS&REQUEST=GetCapabilities"
"ST_BE","https://map.bern.ch/arcgis/rest/services/Geoportal/STEK2016_Entwicklungspotenziale/MapServer/WMTS/1.0.0/WMTSCapabilities.xml"
"ASIT","https://wmts.asit-asso.ch/wmts/1.0.0/WMTSCapabilities.xml"

No waranties about the entries other than SOSM. I'd like to leave it up to you to integrate this into "production": https://github.com/FHNW-IVGI/Geoharvester/blob/main/scraper/sources.csv

p1d1d1 commented 6 months ago

@FStriewski for the icons (you may need to adapt them, e.g. deleting the text info):

SOSM: https://sosm.ch/wp-content/uploads/2019/02/cropped-SOSM-Logo_v1-32x32.png @sfkeller do you have an SVG icon? ST_ZU: https://commons.wikimedia.org/wiki/File:Logo_Stadt_Z%C3%BCrich.svg ST_BE: https://www.bern.ch/logo.png ASIT: https://asit-asso.ch/themes/asit/assets/images/logos/logo_asit.png

sfkeller commented 6 months ago

@sfkeller do you have an SVG icon?

Yes. Here it is:

SOSM-Logo_v0 90

FStriewski commented 5 months ago

Sorry for the late response. I have added the data to our sources and the icons as well. If it is possible, please provide a .svg for SOSM and ASIT but I can search for those as well. For now I am converting the png to svg but the output looks a bit messy.

The data should be reflected on the server after the next release (once the preprocessing is finalized @p1d1d1) - some time in the upcoming weeks.

sfkeller commented 5 months ago

please provide a .svg for SOSM

The logo for SOSM is already in .svg - isn't it?

sfkeller commented 5 months ago

The data should be reflected on the server after the next release (once the preprocessing is finalized @p1d1d1) - some time in the upcoming weeks.

Can you ping me if it's released (just answering to this or closing this issue is enough)?

BTW: Searching for "openstreetmap" on https://geoharvester.ch currently gives "Error..." as result. 😒

FStriewski commented 4 months ago

The changes are now live. You can verify by selecting SOSM, ASIT or ST_ZH in the "Provider" drop down. Data for ST_BE was not scraped in the latest run, maybe the endpoint was not reachable at that time.