On Thu, Sep 4, 2014 at 10:57 AM, Andrea Aime <andrea.a...@geo-solutions.it>
wrote:
> On Thu, Sep 4, 2014 at 10:46 AM, Jan Peters <peters...@gmx.at> wrote:
>
>> to this:
>>
>> <ogc:Literal>-0.828977</ogc:Literal>
>>
>> But this doesn't work either (Geoserver tells me that my SLD is not
>> valid). I also reduced the number of rows in the PostGIS table to one and
>> tried positive and negative values for the respective field, the error is
>> always the same so I suspect a problem with the SLD.
>>
>
> This one is the correct way. What's the error you're getting? It probably
> has nothing to do with the minus sign...
>
Wait, this is certainly wrong:
<ogc:Literal>-<ogc:Literal>0.828977</ogc:Literal>
</ogc:Literal>
Two nested literals? It should be simply be:
<ogc:PropertyIsLessThanOrEqualTo>
<ogc:PropertyName>percentage_change</ogc:PropertyName>
<ogc:Literal>-0.463182</ogc:Literal>
</ogc:PropertyIsLessThanOrEqualTo>
Cheers
Andrea
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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
-------------------------------------------------------
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users