On Fri, Nov 5, 2010 at 5:42 PM, David Winslow <[email protected]> wrote: > Andrea can chime in, but I think that many of the vendor options currently > implemented would not work well with functions evaluated per-feature. Env > is kind of a special case, most functions in SLD are meant to operate on > attributes of the data. > That said, I think the LabelCacheImpl in GeoTools would be the place to > start investigating if you want to add support for functions in > vendoroptions. > http://svn.osgeo.org/geotools/trunk/modules/library/render/src/main/java/org/geotools/renderer/label/LabelCacheImpl.java
Mumble mumble... well, I guess we can have the vendor options be expressions (similar to cssexpression). However that would require quite some changes in Geotools, both code and API wise, and break quite a bit of people in the process (whoever is using vendor options programmatically) I think we'd have to maintain double api for some time, deprecating the old and offering a new one where a vendor option is an Expression instead of a string (the old case is treated by having the string become a Literal) It is certainly doable, but requires some care, effort, and some discussion on the geotools-devel list about the API change. Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
