[MapProxy] Compatibility with GeoServer workspaces

Paul Wittle P.Wittle at dorsetcc.gov.uk
Fri Aug 17 03:50:23 PDT 2018


Hi,

That is roughly the conclusion I had come to as well but clearly that would mean that the autoconfig will simply not work with a WMS provider such as GeoServer as the logic would need to be in the autoconfig script.

So looking at https://github.com/mapproxy/mapproxy/blob/master/mapproxy/util/ext/wmsparse/parse.py which I assume runs that.

I’m thinking that “name=self.findtext(elem, 'Name')” on line 118 would need to handle this scenario. I would probably look to create a ‘safe’ name property where : is converted to _.

I say that as the name is also reused further in things like source and cache names which means it is not as simple just using quotes in the layer name.

Is there a separate list for development or is this the right place to discuss if such a change might work?

Paul

From: Travis Kirstine <traviskirstine at gmail.com>
Sent: 15 August 2018 18:18
To: Paul Wittle <P.Wittle at dorsetcc.gov.uk>
Cc: mapproxy <mapproxy at lists.osgeo.org>
Subject: Re: [MapProxy] Compatibility with GeoServer workspaces

I believe that you need to put quotes around the layer name ' nurc:Img_Sample' as colons are a restricted character in yaml.  If this doesn't work please post the section of you config that is causing the issue.



On Wed, 15 Aug 2018 at 11:37, Paul Wittle <P.Wittle at dorsetcc.gov.uk<mailto:P.Wittle at dorsetcc.gov.uk>> wrote:
Hi,

I’ve just installed MapProxy to see if it will work for our infrastructure but I’m trying to connect it to a GeoServer and getting errors.

I’ve used the autoconfig to read the default capabilities statement from a new GeoServer but I’m getting KeyError: ‘nurc’ when loading MapProxy.

Is MapProxy able to cope with the GeoServer workspaces in the layer names?

An example layer name might be nurc:Img_Sample (workspace:layer).

Best Regards,

Paul

"This e-mail is intended for the named addressee(s) only and may contain information about individuals or other sensitive information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this email in error, kindly disregard the content of the message and notify the sender immediately. Please be aware that all email may be subject to recording and/or monitoring in accordance with relevant legislation."
_______________________________________________
MapProxy mailing list
MapProxy at lists.osgeo.org<mailto:MapProxy at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapproxy
"This e-mail is intended for the named addressee(s) only and may contain information about individuals or other sensitive information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this email in error, kindly disregard the content of the message and notify the sender immediately. Please be aware that all email may be subject to recording and/or monitoring in accordance with relevant legislation."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180817/6a391d1e/attachment.html>


More information about the MapProxy mailing list