01-18-2019 12:13 AM
i try to create a new WMTS Feature. but GSMC tells me that the URL is invalid, even it is not.
the URL works:
https://maps.wien.gv.at/basemap/1.0.0/WMTSCapabilities_31256.xml
but GMSC seems not to like the suffix " _31256"
regards
Franz
01-18-2019 04:24 AM
Hi Franz,
Does it work without the '_31256' for you? ie. https://maps.wien.gv.at/basemap/1.0.0/WMTSCapabilities.xml
It seems to for me in quick testing.
The only message I get from the console when using the original URL is 'is valid = false'. Not much information to go by there.
Unless you get good answer as to why its flagged invalid on this forum I suggest opening a support ticket for further investigation.
01-18-2019 04:32 AM
Hi Franz,
Upon further review I found the validation on the URLpath form field. The datatype for the Form Field is 'string' and as such the '_' isnt valid for Java parsing of string values. This would be the reason the message gets returned 'has to be a valid wmts url' which is a little misleading since as you see the URL itself is valid.
01-18-2019 04:36 AM
thanks for the investigation! i'll try to just input directly to the database instead of using the admin-form...
01-18-2019 05:30 AM
when i cange the url in the database (add the _31256) again. all other attributes are deleted again... there seems to be a validation on database level as well
01-21-2019 12:51 AM
As a workaround you could just download the WMTSCapabilities XML File,
rename it and put it on your own web server.
That would allow you to configure and use the service.
01-21-2019 02:20 AM
i tried that. but http://localhost/IPR/WMTSBasemap/WMTSCapabilities.xml is also not accepted as valid url... though It works when i call it in the browser
01-21-2019 02:24 AM
Try replacing "localhost" with the hostname of your server.
01-21-2019 02:37 AM
neither hostname nor IP works...