Hi geoserver-community,
My name is David, this is my first post in the list and I feel curious about
how SLD styling works in Geoserver. I am styling some layers using YSLD files
and I am using filters in my rules. These filters look like this:
name: style_example
title: projects
feature-styles:
- rules:
- filter: ${ Attribute1 = 'Value A' AND status = 'Ok'}
name: Ok
symbolizers:
- point:
size: *size
symbols:
- mark:
shape: circle
fill-color: '#0000FF'
I have lots of similar rules and the statement Attribute1 = 'Value A' never
changes.
I have used the following way for working with variables:
define: &attribute_name ${Attribute1 = 'Value A'}
name: style_example2
title: projects
feature-styles:
- rules:
- filter: *attribute_name
- filter: ${status = 'Ok'}
name: Ok
symbolizers:
- point:
size: *size
symbols:
- mark:
shape: circle
fill-color: '#0000FF'
Would you know if Geoserver process these two types of styling in the same way?
I mean, needs Geoserver to import the data twice when I use two filters in my
rule instead of compounding the statements in only one filter?
The next thing may it be related or not but, I have tried to compare the SLD
version using the Rest API(Geoserver version 2.10.2), and I couldn't be able to
get the SLD version of my style:
http://localhost:8080/geoserver/rest/resource/workspaces/myworkspace/styles/yaml_file_example.sld
Even though I am able to download the yaml version(native extension of the
style) using the Rest API, I can not get the SLD (transformed) version of the
style. I have the following answer from Geoserver:
Undefined resource path.
(However, I am able to get the SLD and YAML version of the example styles of
Geoserver)
Thank a lot,
David
---
Deutsche Telekom IT GmbH
Technology Solution
David Lopez Villegas
GIS-mobile
Oberkasseler Strasse 2, 53227 Bonn, Germany
+49 228 18149623 (Phone)
E-Mail: [email protected]<mailto:[email protected]>
Internet: www.telekom.com<http://www.telekom.com>
Life is for sharing.
You can find the obligatory information on
www.telekom.com/compulsory-statement-dtit<http://www.telekom.com/compulsory-statement-dtit>
Big changes start small - conserve resources by not printing every e-mail.
Notice: This transmittal and/or attachments may be privileged or confidential.
It is intended solely for the addressee named above. Any dissemination, or
copying is strictly prohibited. If you received this transmittal in error,
please notify us immediately by reply and immediately delete this message and
all its attachments. Thank you.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users