[CITE-Forum] About issue 904 (wms 1.1.1 capabiltiies fix)

Andrea Aime andrea.aime at geo-solutions.it
Sun Dec 1 05:59:04 EST 2013


Hi,
I see the change I proposed was merged on trunk, so I tried again today,
and found it was still failing for me.

This is weird, but compared to last week, today I'm using JDK 6 instead of
JDK 7
to run teamengine, so that's a factor.

This seems to work properly (had to add a [1] in the path):

<ctl:with-param name="preferred-name"
select="string($capabilities/Capability//Layer[Name and Style/Name =
$style][1]/Name)"/>

If you prefer a diff:

diff --git a/wms/1.1.1/trunk/ctl/wms.xml b/wms/1.1.1/trunk/ctl/wms.xml
index a1eb1ae..0d57430 100644
--- a/wms/1.1.1/trunk/ctl/wms.xml
+++ b/wms/1.1.1/trunk/ctl/wms.xml
@@ -10187,7 +10187,7 @@ longitude</td>
           <xsl:variable name="layer-info">
             <ctl:call-function name="functions:layer-info">
               <ctl:with-param name="root-layer"
select="$capabilities/Capability/Layer"/>
-              <ctl:with-param name="preferred-name"
select="string($capabilities/Capability//Layer[Name and Style/Name =
$style]/Name)"/>
+              <ctl:with-param name="preferred-name"
select="string($capabilities/Capability//Layer[Name and Style/Name =
$style][1]/Name)"/>^M
               <ctl:with-param name="preferred-srs"></ctl:with-param>
               <ctl:with-param name="preferred-bbox"></ctl:with-param>
               <ctl:with-param name="preferred-width">100</ctl:with-param>

I wanted to comment on the issue directly, but could not find a way. Does
one need to register/login somewhere?

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20131201/25474efe/attachment.html>


More information about the CITE-Forum mailing list