On Mon, Nov 21, 2011 at 12:21 PM, Benjamin GUIBERT
<benjamin.guib...@ign.fr> wrote:
> Hello,
>
> Is this normal that stroke parameter cannot be substituted whereas fill
> parameter can? Even the default value is not read. I tried on different
> files, always the same issue, like the example below.
>
> URL parameter:
> &env=fill:00FF00;stroke:FFFFFF
>
> SLD:
> <PolygonSymbolizer uom="http://www.opengeospatial.org/se/units/metre";>
>            <Fill>
>              <CssParameter name="fill">
>                #
>                <ogc:Function name="env">
>                   <ogc:Literal>fill</ogc:Literal>
>                   <ogc:Literal>AAAAAA</ogc:Literal>
>                </ogc:Function>
>              </CssParameter>
>            </Fill>
>            <Stroke>
>              <CssParameter name="stroke">
>                #
>                <ogc:Function name="env">
>                   <ogc:Literal>stroke</ogc:Literal>
>                   <ogc:Literal>0000FF</ogc:Literal>
>                </ogc:Function>
>              </CssParameter>
>              <CssParameter name="stroke-width">10</CssParameter>
>            </Stroke>
>          </PolygonSymbolizer>

Hmm... the SLD looks fine, may it be that the problem is in the
request parameters instead?
One thing that catches me often is that the separator in the env
parameter syntax is a semicolumn
instead of a comma.
See the example here:
http://docs.geoserver.org/latest/en/user/styling/sld-extensions/substitution.html

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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to