Skip to main content
Question

WMS URL with a Drive Letter in

  • November 17, 2020
  • 2 replies
  • 14 views

joe.fme
Contributor
Forum|alt.badge.img+6

Hi all, I've been asked to read a WMS which starts with a regular looking URL, which then forwards to a URL which is proving difficult.

 

The URL looks as follows -

http://<url>.co.uk/WMS/MS/7.2.1/mapserv.exe?map=D:\\Websites\\<service>\\Services\\WMSSHARE\\map\\Layers.map&SERVICE=WMS&VERSION=1.1.1

 

The part that's giving me trouble is where the D:\\ is. I've tried enclosing the URL in speechmarks and using a pythonCaller to workaround this, but so far I've had no luck. I managed to get the URL changed once, but it just forwards to this one, which is causing issues.

 

Has anyone else experienced something like this?

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • November 17, 2020

Convention is to use so-called URL-encoding on all parameters, in particular ":" is not allowed used unencoded in a URL parameter. You can try using a TextEncoder in mode "URL (Percent encoding)" on the value side of each parameter, so that you get 

...?map=D%3A%5CWebsites%5C%3Cservice%3E%5CServices%5CWMSSHARE%5Cmap%5CLayers.map&...

 


joe.fme
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • November 17, 2020

Convention is to use so-called URL-encoding on all parameters, in particular ":" is not allowed used unencoded in a URL parameter. You can try using a TextEncoder in mode "URL (Percent encoding)" on the value side of each parameter, so that you get 

...?map=D%3A%5CWebsites%5C%3Cservice%3E%5CServices%5CWMSSHARE%5Cmap%5CLayers.map&...

 

Hi David,

Thank you for your reply, but still no luck. I feel I may have to go back to the person who's hosting the URL and see if I can get that colon removed.