On Sat, Nov 3, 2012 at 8:30 PM, Ákos Maróy <[email protected]> wrote: > Hi, > > I wonder if this has been discussed earlier, but it would be soo nice to > have the ability to create custom re-usable snippets / functions in SLD. > > I'm having more and more complex rendering rules, that I have to re-use > in a number of different parts of the same SLD. this means a lot of > error-prone copy-paste-ology. it would be so nice to be able to re-use > these complex rules.
SLD offers no such ability, although I've heard through the grapevine that SLD 2.0 might offer this in the future. If you are looking for something better there is the unsupported CSS module that offers much more compact syntax and allows for reuse via cascading. Being unsupported you cannot download it as part of a release, you have to fetch it from a nightly build, and it tends to lag a bit behind the SLD version in terms of feature supported (for example, I'm not sure if it supports rendering transformations as of now) 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 ------------------------------------------------------- ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
