[MapProxy] OnlineResource on WMS Capabilities

Jorge Gaspar Sanz Salinas jsanz at osgeo.org
Thu Feb 9 11:46:18 EST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, I have a pretty complicated environment (proxies) and I came across
a situation where I'm not sure if I found a bug or not.

I've got a MapProxy multimap environment, and I set up the
OnlineResource at the yaml files.

The problem is that the capabilities document reflects the correct url
at the

Service->OnlineResorce

tag but differs from the

Capability->Request->GetCapabilities->DCPType->HTTP->Get->OnlineResource

where it puts the url it infers (I imagine) from the headers of the
request or something like that. The same for GetMap, GetFeatureInfo and
GetLegendGraphic operations.

That url in my case is wrong and I need it right as a webclient is using
that information to dynamically load layers on a geoportal.

I understand that the OnlineResources of the operations if a service
Online Resource is set up should be used.

I've solved my issue replacing the tags "service.url" by
"service.online_resource" at the

/lib/python2.6/site-packages/mapproxy/service/templates

xml templates as I always set up the tag but if this is a bug I imagine
an "if" control should be placed there.

BTW, I've reproduced this also on a MapProxy 1.3 single map instance.

Best regards

- -- 
Jorge Gaspar Sanz Salinas
http://es.osgeo.org
http://jorgesanz.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPM/haAAoJEAOYD75lvHdBkNMIANV+B15j862DbAd4iZre+nBg
1Z8SzXx/ZhFlU+oZnmklTQzmWReR19OGY8ftkkcWxj7/m9pTNiYrE6XUS6zIFyVa
PzboxH81qfbp0v21Mj6qoLfOitgimIHhjpM4XQ1StmTJUJ7fTRRD3Exd5DU0jO7f
NEO7O+2y+mRSXwxkmGCBbL0CKRzWojPuG6LvBMh838+Z4cCiaYl+0kO/mojF5tYP
X7bZpW/Z30XlEkcaC60WMuVb0i19N4fjZSbqiMdzi9TWDn+a1yRswO4XxBZV1zLt
prUrC8O7vNSWYK6GDNRCKLL+AF22EnedVVLc+L4X41PWUiu+Qi2ciG3A8VuUyO0=
=L6sH
-----END PGP SIGNATURE-----


More information about the MapProxy mailing list