I was looking into the community YSLD extension that uses YAML instead of XML for SLD definition. I found this to be a much cleaner alternative! However, many of my project’s existing SLDs use environment variables that can be set via request. Reading the documentation, I found no reference for environment variables as in standard SLD specification.
Is this a feature that exists and lacks documentation? If not, does anyone know about plans to add this feature and potentially official support for the YSLD extension?
I was looking into the community YSLD extension that uses YAML instead of XML for SLD definition. I found this to be a much cleaner alternative! However, many of my project’s existing SLDs use environment variables that can be set via request. Reading the documentation, I found no reference for environment variables as in standard SLD specification.
Is this a feature that exists and lacks documentation? If not, does anyone know about plans to add this feature and potentially official support for the YSLD extension?
Thanks!
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today. http://sdm.link/attshape
I’m not sure how I would express the OGC environmental variable function “ENV” in YSLD.
-Landon
···
Do you have a link to the functionality you are talking about?
I think environmental variables are just a function… if so it should work?
–
Jody Garnett
On 11 July 2016 at 06:19, Petzoldt, Landon <petzoldt@…6673…> wrote:
Hello,
I was looking into the community YSLD extension that uses YAML instead of XML for SLD definition. I found this to be a much cleaner alternative! However, many of my project’s existing SLDs use environment variables that can be set via request. Reading the documentation, I found no reference for environment variables as in standard SLD specification.
Is this a feature that exists and lacks documentation? If not, does anyone know about plans to add this feature and potentially official support for the YSLD extension?
Thanks!
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today. http://sdm.link/attshape
I just wanted to let anyone following know that I solved this issue. I had not used the YSLD expressions for anything, but a simple expression worked perfectly!
As an example I used:
stroke-color: ${env(‘color’)}
I got the expected result when setting the ENV parameter in my request.
-Landon
···
From: Petzoldt, Landon [mailto:petzoldt@…6673…] Sent: Tuesday, July 12, 2016 8:11 AM To: Jody Garnett <jody.garnett@…84…> Cc:geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] YSLD extension - ENV variable support
Do you have a link to the functionality you are talking about?
I think environmental variables are just a function… if so it should work?
–
Jody Garnett
On 11 July 2016 at 06:19, Petzoldt, Landon <petzoldt@…6673…> wrote:
Hello,
I was looking into the community YSLD extension that uses YAML instead of XML for SLD definition. I found this to be a much cleaner alternative! However, many of my project’s existing SLDs use environment variables that can be set via request. Reading the documentation, I found no reference for environment variables as in standard SLD specification.
Is this a feature that exists and lacks documentation? If not, does anyone know about plans to add this feature and potentially official support for the YSLD extension?
Thanks!
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today. http://sdm.link/attshape