On Thu, Dec 1, 2011 at 9:04 PM, Phil Scadden <[email protected]> wrote:
> Geoserver 2.0.2
> The request below returns the image styled by the layers assigned style
> not the one in SLD_BODY.
>
> However, the matching getLegendGraphic does produce the correct style.
> What am doing wrong?
>
Get the SLD 1.0 specification and read about library mode at section 6.4
Excerpt:
To make the HTTP-GET methods more practical for use, the SLD can also be
used in
one of two different modes depending on whether the LAYERS parameter is
present in the
request. If it is not present, then all layers identified in the SLD
document are rendered
with all defined styles, which is equivalent to the XML-POST method of
usage. If the
LAYERS parameter is present, then only the layers identified by that
parameter are
rendered and the SLD is used as a “style library”.
When an SLD is used as a style library, the STYLES CGI parameter is
interpreted in the
usual way in the GetMap request, except that the handling of the style
names is organized
so that the styles defined in the SLD take precedence over the named styles
stored within
the map server. The user-defined SLD styles can be given names and they can
be marked
as being the default style for a layer. To be more specific, if a style
named
“CenterLine” is referenced for a layer and a style with that name is
defined for the
corresponding layer in the SLD, then the SLD style definition is used.
Otherwise, the
standard named-style mechanism built into the map server is used. If the
use of a default
style is specified and a style is marked as being the default for the
corresponding layer in
the SLD, then the default style from the SLD is used; otherwise, the
standard default style
in the map server is used.
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users