multiple NamedLayer elements in one SLD?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

multiple NamedLayer elements in one SLD?

Christian Sengstock
Hi,
is it with Geoserver 1.2.4 possible to have ONE StyledLayerDescriptor
with the NamedLayer descriptions for ALL FeatureTypes in it (sld like
in deegree)? Should the Geoserver sld-id be the NamedLayer Name
element or something like this?
Thanks for any help, Chris


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. <a href="http://ads.osdn.com/?ad_idt77&alloc_id492&op=click">http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: multiple NamedLayer elements in one SLD?

Chris Holmes-2
Quoting Christian Sengstock <[hidden email]>:

> Hi,
> is it with Geoserver 1.2.4 possible to have ONE StyledLayerDescriptor
> with the NamedLayer descriptions for ALL FeatureTypes in it (sld like
> in deegree)? Should the Geoserver sld-id be the NamedLayer Name
> element or something like this?
GeoServer's control over NamedLayer Styles and how they report in the
capabilities document is in need of improvement.  But in terms of
actually working, it should be fine.  Which is to say if you have a SLD
that _does_ in fact work with all styles, it won't be reported in the
caps, but you can still use that named style when requesting other
layers.  If the style has specific attribute names then it won't work
against all layers, but if it's general then it should function fine.
So the problem is in the reporting of the named layers, not the use.
Does this make sense?

In the SLD file itself you just use 'Feature' for the name, instead of
the specific layer name, and it will try to match against all
FeatureTypes, since they all descend from Feature.  This is as the SLD
spec says.

Chris


> Thanks for any help, Chris
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration
> Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. <a href="http://ads.osdn.com/?ad_idt77&alloc_id492&op=click">http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>




----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users