On Tue, Apr 15, 2014 at 9:50 AM, Sampo Savolainen <
sampo.savolai...@spatineo.com> wrote:
> Hi Andrea,
>
> CQL looks like a definite contender. The standard FilterFactory expects to
> get properties from SimpleFeatures and does not understand Java Beans
> notation. To get around this, I created a FilterFactory that extends the
> basic impl and returns a different PropertyName implementation for
> properties. This implementation simply uses commons-beans to access the
> java bean properties. This works well, but I was wondering if it would make
> sense to create an "official" PropertyAccessorFactory capable of retrieving
> data from any java bean? This might pose some security issues and I trust
> you to be a better judge at this.
>
Wondering, do you really have the evaluate filters against beans?
But yes, I don't think there is any issue adding a javabean based property
accessor (maybe check if you need to add dependencies though, like
commons-beanutils, to make it run, or if the stuff you need is already
there)
>
> Another thing I'm missing is that I can't find a CQL function to convert
> numbers into strings. As I'm using the expression language to produce
> values to put in the stored query parameters, such a function would be
> invaluable. Is there such a function or should I add one as an extension? I
> would first just add it to my use case but you can later figure out if it's
> needed in the main CQL toolkit. I'm thinking "toString(expr)", any thoughts?
>
numberFormat:
http://docs.geoserver.org/stable/en/user/filter/function_reference.html#parsing-and-formatting-functions
Cheers
Andrea
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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
-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel