Hi Steve,

Would the "env" filter function help here ?

http://docs.geotools.org/stable/javadocs/org/geotools/filter/function/EnvFunction.html

Michael


On 6 October 2010 19:10, Stefan A. Tzeggai <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> Geopublisher is a SWING tool based on GeoTools 2.6 that creates maps,
> where the user can just switch the language and see the atlas in another
> langauge.
>
> This works fine for metadata, legends and GUI, but I now want to
> implement a feature, where the atlas creator can define different text
> symbolizer label columns for each language.
> I can think of many dirty ways of doing this, but what I think would be
> nicest is, if I could use an Expression/Filter function that would check
> against somehting like an environment variable to select the correct
> column.
>
> So i want to just have one SLD file, and only the label property of the
> TextSymbolizer should containt a <ogc:Function that would select the
> correct column depending on the selection language. I could pass the
> selected language as an environment variable or anything else.
>
> Does a function like that already exist?
>
> Could "Parameter substitution in SLD"
> http://docs.geoserver.org/2.0.x/en/user/styling/sld-extensions/substitution.html
> help me?
> How would I pass such a paramter to the StreamingRenderer?
>
> Could I write my own filter? Which interface would I have to implement?
> Are there any example of how to write my own filter function?
>
> Thanks a lot,
>
> Steve
>
> http://en.geopublishing.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkysLu4ACgkQdFDQR1G1dv1qQQCgoChPWNS7XrU2jl7w2IqLTnX9
> QL0AoMHXSeAvsh4UsKQBIFBBL6vaCSjW
> =lX3g
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to