server could fill in url into template, no need for hard coding

Issue #44 resolved
Reimar Bauer created an issue

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)

  1. Marc R. repo owner

    Just make sure that everything stays compatible with the WMS standard -- server and UI are also used with other WMS compatible clients and servers.

  2. Reimar Bauer 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.

  3. Log in to comment