server could fill in url into template, no need for hard coding
We should make a review how much server requests are needed to get an image.
Currently the get_capabilities.pt template needs lines of having an xlink definition to the servers Url.
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="h
ttp://www.your.server"/>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/
xlink" xlink:href="http://www.your.server/?"/>
Because the UI does read this for building its base_url when we request a map. by wms_control.py (getmap)
base_url = self.getOperationByName('GetMap').methods[method]['url']
getCapabilities does it by reading the user input
base_url = str(self.cbURL.currentText())
In wms_control.get_map we have the Url already on self.url on some other places as self.wms.url
I would prefer if we could abstain to add the Url to the server configuration template files.
Comments (7)
-
repo owner -
reporter - changed title to mss ui requests Url from server ??
-
reporter - changed milestone to 1.2.0
-
reporter Will try to get the server to enter that url he uses to that file by parameter.
The benefit is that we can have these files static and no need to alter them.
-
reporter - changed title to server could fill in url into tempate, no need for hard coding
-
reporter - changed title to server could fill in url into template, no need for hard coding
-
reporter - changed status to resolved
parameter server_url introduced to fill in servers url into the template, fixes
#44→ <<cset 6a1c22b57d28>>
- Log in to comment
Just make sure that everything stays compatible with the WMS standard -- server and UI are also used with other WMS compatible clients and servers.