Opened 4 years ago
Last modified 4 years ago
#20283 new enhancement
Add support for GetFeatureInfo WMS functionality
Reported by: | *Martin* | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | |
Keywords: | WMS feature info | Cc: |
Description (last modified by )
WMS servers may provide GetFeatureInfo functionality which is basically querying for various properties of a map object by selected coordinates. It would be very useful if JOSM would have it. It could be done by right-clicking on the WMS map layer and selecting "Get WMS Feature Info" from context menu. Result could be displayed in the tabular form, or in HTML view.
Attachments (0)
Change History (12)
comment:1 by , 4 years ago
Description: | modified (diff) |
---|
comment:2 by , 4 years ago
Summary: | Add support of GetFeatureInfo WMS functionality → Add support for GetFeatureInfo WMS functionality |
---|
comment:3 by , 4 years ago
Keywords: | WMS feature info added |
---|
comment:4 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:5 by , 4 years ago
For example https://zbgisws.skgeodesy.sk/zbgis_vodstvo_wms_featureinfo/service.svc/get?request=GetCapabilities&service=WMS (country Slovakia).
comment:6 by , 4 years ago
I just randomly take a look at Maps/Switzerland and found nearly everywhere GetCapabilities:
https://map.bern.ch/wms/OpenData/proxy.php?request=GetCapabilities&service=WMS
https://wms.zh.ch/OGDOrthoZH?request=GetCapabilities&service=WMS
https://wms.zh.ch/OGDLidarZH?request=GetCapabilities&service=WMS
https://ows.geo.tg.ch/geofy_access_proxy/basisplanf?request=GetCapabilities&service=WMS
https://ows.geo.tg.ch/geofy_access_proxy/radwege?request=GetCapabilities&service=WMS
https://ows-raster.geo.tg.ch/geofy_access_proxy/orthofoto2017?request=GetCapabilities&service=WMS
https://www.ogd.stadt-zuerich.ch/wms/geoportal/Orthofoto_2013_Stadt_Zuerich___Fruehling?request=GetCapabilities&service=WMS
https://geo.so.ch/api/wms?request=GetCapabilities&service=WMS
And some times there are different URLs (start at https://ge.ch/sitgags2/rest/services/RASTER) like
https://ge.ch/sitgags2/rest/services/RASTER/ORTHOPHOTOS_2019/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
[Edit] sorry, this is for WMTS. WMS is:
https://ge.ch/sitgags2/services/RASTER/MNA_RELIEF_SURFACE/MapServer/WMSServer?request=GetCapabilities&service=WMS
[Edit 2] Correct URL for ORTHOPHOTOS_2019 WMS:
https://ge.ch/sitgags2/services/RASTER/ORTHOPHOTOS_2019/MapServer/WMSServer?request=GetCapabilities&service=WMS
comment:7 by , 4 years ago
More sources but I am not sure if all have GetFeatureInfo capability:
https://www.geoportal.sk/sk/inspire/zobrazovacie-sluzby/
https://www.geoportal.sk/sk/sluzby/mapove-sluzby/wms/wms-zbgis.html
comment:8 by , 4 years ago
They have. The URL https://www.geoportal.sk/sk/inspire/zobrazovacie-sluzby/ leads to
https://zbgisws.skgeodesy.sk/zbgis_wms_featureinfo/service.svc/get?request=GetCapabilities&service=WMS
https://kataster.skgeodesy.sk/eskn/services/NR/kn_wms_norm/MapServer/WmsServer?request=GetCapabilities&service=WMS
https://zbgisws.skgeodesy.sk/zbgis_referencny_geodeticky_bod_wms_featureinfo/service.svc/get?request=GetCapabilities&service=WMS
https://zbgisws.skgeodesy.sk/zbgis_antropogenne_prvky_wms_featureinfo/service.svc/get?request=GetCapabilities&service=WMS
https://zbgisws.skgeodesy.sk/zbgis_vyskopis_wms_featureinfo/service.svc/get?request=GetCapabilities&service=WMS
https://zbgisws.skgeodesy.sk/klady_mapovych_listov_wms/service.svc/get?request=GetCapabilities&service=WMS
etc.
But I don't know if they are legal sources for OSM, because Maps/Slovakia has only one WMS service:
https://zbgisws.skgeodesy.sk/zbgis_wms_featureinfo/service.svc/get?request=GetCapabilities&service=WMS
(which also support GetCapabilities)
comment:9 by , 4 years ago
But I don't know if they are legal sources for OSM
I provided them only as samples for developiong this feature in JOSM and not for OSM mapping.
comment:10 by , 4 years ago
I think request=GetCapabilities&service=WMS
is a standard functionality for all WMS servers.
comment:11 by , 4 years ago
Perhaps it would make sense to create a tool (or unit test) which compares the GetCapabilities
results from WMS servers with the Maps entries like ImageryCompare is comparing these data with ELI.
comment:12 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
@mdk I was just asking for a GetFeatureInfo example. Of course all WMS servers have to support GetCapabilities, that's how WMS works. The first link gave me what I needed:
<GetFeatureInfo> <Format>application/vnd.esri.wms_raw_xml</Format> <Format>application/vnd.esri.wms_featureinfo_xml</Format> <Format>application/vnd.ogc.wms_xml</Format> <Format>application/geojson</Format> <Format>text/xml</Format> <Format>text/html</Format> <Format>text/plain</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:type="simple" xlink:href="https://zbgisws.skgeodesy.sk/zbgis_vodstvo_wms_featureinfo/service.svc/get?"/> </Get> </HTTP> </DCPType> </GetFeatureInfo>
We need to know a public WMS server that implements this functionality if ever we want to support it.