Opened 8 years ago
Last modified 8 years ago
#13118 new defect
[Patch] wms imagery should probe for WMS Version or allow to set it
Reported by: | flohoff | Owned by: | simon04 |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | |
Keywords: | template_report wms version | Cc: |
Description
The WMS URL:
https://geoportal.kreis-guetersloh.de/WMS/ALKIS_Basis_public/guest?
only allows requests with VERSION=1.3 - All Requests with VERSION=1.1.1 fail with some error.
The Workaround is to extend the url with a VERSION=1.3 ->
https://geoportal.kreis-guetersloh.de/WMS/ALKIS_Basis_public/guest?VERSION=1.3
JOSM then extends the URL further with its own VERSION:
https://geoportal.kreis-guetersloh.de/WMS/ALKIS_Basis_public/guest?VERSION=1.3&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities
Interestingly it works - it seems the WMS Server does not parse the full url but only
up the first VERSION identifier. Still i'd expect other WMS Server to fail.
Please -
a) Either probe for the Version e.g. trying the getcapabilities with 1.1.1 and 1.3 if Version 1.1.1 fails,
this is what qgis does, or
b) let the user choose the version with a Kind of drop down, or
c) dont append another VERSION= parameter if the user already added a VERSION to the baseurl.
I'd suggest a) and c) - So if the user supplies a VERSION use it. It he/she/it doesnt probe for
a VERSION.
Flo
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2016-07-06 22:51:51 +0200 (Wed, 06 Jul 2016) Build-Date:2016-07-07 01:34:43 Revision:10520 Relative:URL: ^/trunk Identification: JOSM/1.5 (10520 en) Linux Debian GNU/Linux 8.5 (jessie) Memory Usage: 535 MB / 1820 MB (382 MB allocated, but free) Java version: 1.8.0_92-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Dataset consistency test: No problems found Plugins: - Mapillary (32396) - Tracer2 (32309) - apache-commons (32309) - apache-http (32309) - buildings_tools (32309) - continuosDownload (53) - gson (32309) - jogl (1.0.46) - kendzi3d (1.0.190.1) - kendzi3d-resources (0.0.1) - log4j (32309) - mapdust (32329) - reverter (32309) - terracer (32309) - utilsplugin2 (32333) Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Lit&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1 Last errors/warnings: - W: Unable to delete file <josm.pref>/cache/tiles/WMTS.data - W: Unable to delete file <josm.pref>/cache/tiles/WMTS_BLOCK.key - W: Unable to delete file <josm.pref>/cache/tiles/WMTS_BLOCK.data - W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX.key - W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX.data - W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX_v2.key - W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX_v2.data
Attachments (1)
Change History (20)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
Milestone: | → 16.06 |
---|
follow-up: 5 comment:3 by , 8 years ago
comment:4 by , 8 years ago
Milestone: | 16.06 → 16.07 |
---|
comment:5 by , 8 years ago
Replying to bastiK:
I thought this was working at some time, is it a regression?
Whenever GetCapabilities
is present in the user specified WMS URL, it uses exactly the specified URL, otherwise VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities
is requested
→ https://github.com/openstreetmap/josm/blob/a05f2a233d97248c4f3d622d3b77127719d43497/src/org/openstreetmap/josm/io/imagery/WMSImagery.java#L189
comment:6 by , 8 years ago
Milestone: | 16.07 → 16.08 |
---|
comment:7 by , 8 years ago
Milestone: | 16.08 → 16.09 |
---|
by , 8 years ago
Attachment: | 13118.patch added |
---|
comment:8 by , 8 years ago
Milestone: | 16.09 → 16.10 |
---|---|
Summary: | wms imagery should probe for WMS Version or allow to set it → [Patch] wms imagery should probe for WMS Version or allow to set it |
comment:9 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
follow-up: 16 comment:10 by , 8 years ago
Just to let you know I'm working on a patch, that will allow us to move most of the layers to wms_endpoint and then - we will autodetect the WMS service version. Details are here:
https://github.com/wiktorn/josm/compare/mirror...wiktorn:imagery_def_refactor
I've just took a short look on attached patch and it doesn't look conflicting so I guess we can go ahead with it as a temporary fix.
comment:13 by , 8 years ago
Milestone: | 16.12 → 17.01 |
---|
comment:14 by , 8 years ago
Milestone: | 17.01 → 17.02 |
---|
comment:15 by , 8 years ago
Milestone: | 17.02 → 17.03 |
---|
comment:16 by , 8 years ago
Replying to wiktorn:
Just to let you know I'm working on a patch, that will allow us to move most of the layers to wms_endpoint and then - we will autodetect the WMS service version.
Sounds nice, any news on this feature?
comment:17 by , 8 years ago
Keywords: | wms version added |
---|---|
Milestone: | 17.03 |
follow-up: 19 comment:18 by , 8 years ago
Didn't had much time lately for JOSM. Once #6887 is fixed, I'll come back to this again.
I thought this was working at some time, is it a regression?