<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>didn't answered to the list last time - sorry<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Weitergeleitete Nachricht --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Betreff:
</th>
<td>Re: [MapProxy] FeatureInfo-Request depending on coverage</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Datum: </th>
<td>Thu, 22 Dec 2016 16:12:35 +0100</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Von: </th>
<td>Holger Schiebold <a class="moz-txt-link-rfc2396E" href="mailto:hschiebold@codematix.de"><hschiebold@codematix.de></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">An: </th>
<td>Andreas Zapke <a class="moz-txt-link-rfc2396E" href="mailto:andreas.zapke@geomap.immo"><andreas.zapke@geomap.immo></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Hi,
at the moment it is not implemented i think. But it's open source, so
you can extend the source/wms.py and config/loader.py a little bit.
Maybe like this - but not really tested:
change in config/loader.py in method fi_source
fi_source = WMSInfoSource(fi_client, fi_transformer=fi_transformer)
to
coverage = self.coverage()
fi_source = WMSInfoSource(fi_client, fi_transformer=fi_transformer,
coverage=coverage)
and class WMSInfoSource(InfoSource): in source/wms.py
to
class WMSInfoSource(InfoSource):
def __init__(self, client, fi_transformer=None, coverage=None):
self.client = client
self.fi_transformer = fi_transformer
self.coverage = coverage
def get_info(self, query):
if self.coverage and not self.coverage.contains(query.coord,
query.srs):
return None
doc = self.client.get_info(query)
if self.fi_transformer:
doc = self.fi_transformer(doc)
return doc
regards Holger
Am 21.12.2016 um 16:20 schrieb Andreas Zapke:
> Hi,
>
> I have the same question as Andrej asked yesterday:
>
> I would like to reiterate a question I asked before, but I am still
> couldn't find an answer. Its about WMS FeatureInfo in Mapproxy, may be
> a newbee question, but documentation is not really clear for me.
>
> I defined several wms sources, each source with a provided coverage.
> Those sources are combined in a cache, cache is source for a layer,
> image requests are answered depending on the coverage, everything is
> fine. What is a bit confusing to me is how FeatureInfo requests are
> handled, it seems like coverage is ignored here. I do get results from
> all sources, but i would like to get only the result for the source
> that covers the requested bbox. Is there a way to achieve this? Is
> coverage considered at all for FeatureInfo request in mapproxy?
>
> Thanks in advance!
> _______________________________________________
> MapProxy mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a>
> <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapproxy">http://lists.osgeo.org/mailman/listinfo/mapproxy</a>
mit freundlichen Grüßen
--
Holger Schiebold
____________________
codematix GmbH
Felsbachstrasse 5/7
D-07745 Jena
Tel. +49 (3641) 3038-34
<a class="moz-txt-link-abbreviated" href="http://www.codematix.de">www.codematix.de</a>
</pre>
</div>
</body>
</html>