[Geoserver-users] YSLD extension - ENV variable support

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!

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?

···

On 11 July 2016 at 06:19, Petzoldt, Landon <petzoldt@anonymised.com> 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


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Jody Garnett

Hi Jody,

The link on the GeoServer docs is http://docs.geoserver.org/latest/en/user/community/ysld/index.html.

The demonstrated functionality is the README file on this Geotools page for YSLD https://github.com/geotools/geotools/blob/master/modules/unsupported/ysld/README.md.

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


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hello!

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

Hi Jody,

The link on the GeoServer docs is http://docs.geoserver.org/latest/en/user/community/ysld/index.html.

The demonstrated functionality is the README file on this Geotools page for YSLD https://github.com/geotools/geotools/blob/master/modules/unsupported/ysld/README.md.

I’m not sure how I would express the OGC environmental variable function “ENV” in YSLD.

-Landon

From: Jody Garnett [mailto:jody.garnett@…84…]
Sent: Monday, July 11, 2016 4:36 PM
To: Petzoldt, Landon <petzoldt@…6673…>
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


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users