On Tue, Nov 13, 2012 at 2:46 PM, Ákos Maróy <[email protected]> wrote:
> I found a similar issue, and my solution was to explicitly convert the
> literal numbers to ints, like this:
>
> <ogc:Function name="parseInt">
> <ogc:Literal>0</ogc:Literal>
> </ogc:Function>
>
Checked and yeah, some filter functions including strSubstring are not
trying to do the
string -> int conversion for parameters (the xml parser does not know if
they are supposed
to be strings or numbers, just keeps strings)
Hmm... fixing this will require some thanksless inspection in all the
filter functions,
and add the second param to expression.evaluate(...) to specify the desired
output type.
https://github.com/geotools/geotools/tree/master/modules/library/main/src/main/java/org/geotools/filter/function
Any taker?
Can someone open a ticket on jira.codehaus.org?
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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
-------------------------------------------------------
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users