[wms-dev] differentiate between layers
Steven M. Ottens
steven at minst.net
Sun Jan 29 17:19:41 EST 2006
Hi all,
We at the mapbuilder community (mapbuilder.codehaus.org) are stuck at
the problem of having multiple layers with the same name but different
styles. Right now we use the layerName as the unique identifier for our
application, but we discovered that the following WMC doc doesn't work
that way:
<Layer queryable="1" hidden="0">
<Server service="OGC:WMS" version="1.1.1"
title="gdt:highways">
<OnlineResource xlink:type="simple"
xlink:href="http://localhost:8090/geoserver/wms"/>
</Server>
<Name>gdt:highways</Name>
<Title>US Highways</Title>
<SRS>EPSG:4326</SRS>
<FormatList><Format
current="1">image/png</Format></FormatList>
<StyleList>
<Style
current="1"><Name>orci_us_highways</Name><Title>orci_us_highways</Title></Style>
</StyleList>
</Layer>
<Layer queryable="1" hidden="0">
<Server service="OGC:WMS" version="1.1.1"
title="gdt:highways">
<OnlineResource xlink:type="simple"
xlink:href="http://localhost:8090/geoserver/wms"/>
</Server>
<Name>gdt:highways</Name>
<Title>Interstates</Title>
<SRS>EPSG:4326</SRS>
<FormatList><Format
current="1">image/png</Format></FormatList>
<StyleList>
<Style
current="1"><Name>orci_interstates</Name><Title>orci_interstates</Title></Style>
</StyleList>
</Layer>
It has the same layer-name but different styles. What is the
official/preferred/usual way to distinguish between layers that have the
same name, but different styles?
The problem lies in the actual call to the layer image, the WMC doc
itself is parsed fine, but we're not sure how to call the layer image.
Right now we give it an unique ID which is generated (partly) by the
layer-name. Should we use a combination of layer-name and style-name or
will we run into problems there in other combinations as well?
Meny thanks for your thoughts,
Steven Ottens
Mapbuilder-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.eogeo.org/pipermail/wms-dev/attachments/20060129/f2def785/attachment.bin
More information about the wms-dev
mailing list