Questions tagged [ysld]
YSLD is the styling language used for maps created with OpenGeo Suite Composer. It is is a YAML based language equivalent in functionality to the OGC Styled Layer Descriptor (SLD) standard.
16 questions
0 votes
0 answers
29 views
PointStack styled WMS: how to understand if the clicked feature is made of points all with same lat and lng
I've a layer styled with PointStack and I want to know when I click on a stacked marker, if the cluster is made by point with all the same lat and lng or not. So I'm trying to use the countunique ...
1 vote
0 answers
287 views
Displaying Layer values using Graphs or Histograms in GeoServer
I have a WMS polygon layer read from PostgreSQL, this polygon layer has different values that I would like to display using bar graphs per polygon. The polygons are 4, the bar should ideally look like ...
1 vote
1 answer
792 views
Labeling only a part of the attribute value of a string column in GeoServer
I am looking for a solution for labeling points based on an string attribute value in my table in a way that it shows only a portion of the attribute value in GeoServer. I am using ysld (sld) styling. ...
0 votes
0 answers
46 views
Using line symbolizer in YSLD with minrectangle function trows 'Failed to run GetFeatureInfo on layer' error when selecting objects in GeoServer
As envelope function isn't working at all in YSLD I've tried to use minrectangle instead. Using minrectangle function on multipolygon objects with line symbolizer throws 'Failed to run GetFeatureInfo ...
0 votes
0 answers
81 views
GeoServer function PointN doesn't work in YSLD
I did some tests and want to confirm if function PointN doesn't work in YSLD. For example below YSLD doesn't display any label: name: style feature-styles: - name: style rules: - name: style ...
0 votes
0 answers
157 views
GeoServer YSLD stroke-dashoffset property produce 'Rendering process failed' error for some values
I'm using 'Alternating symbols with dash offsets' example from YSLD cookbook with all values divided by 10 and using uom: metre: title: 'YSLD Cook Book: Dash/Symbol line' feature-styles: - name: name ...
0 votes
0 answers
182 views
Geoserver envelope function not working in YSLD
I'm trying to use envelope function like this i my ysld: - line: uom: metre geometry: ${envelope(geometry)} My ysld won't validate with error: java.lang.IllegalArgumentException: Invalid cql ...
1 vote
0 answers
434 views
How to force fixed position of lines and gaps pattern in SLD/YLSD with stroke-dasharray or stroke-graphic
Any kind of dashed effects (simple line or svg/image symbols on line) are rendered correctly at fixed position if the whole line or its start point are currently visible. If we move the map view that ...
3 votes
0 answers
356 views
How to make piechart with YSLD in Geoserver style
It is possible to make piechart style in Geoserver WMS using XML SLD. For this adding chart extension is required. Now, is it possible to make such piechart with YSLD ? Additional info: My ...
0 votes
0 answers
383 views
GeoServer YSLD - Point Stacking with multiple features on map
So, there isn't much information out there: https://docs.geoserver.org/stable/en/user/styling/ysld/reference/transforms.html#point-stacker And I have successfully used this doc to create a simply ...
0 votes
1 answer
197 views
GeoServer - Render style of points based on URLs saved in a field of the table using YSLD
I am new to styling in GeoServer and was wondering if there is a way to style points in a table based on the external URLs defined in one of the fields in that table. Let's say I have a table in ...
2 votes
1 answer
2k views
Creating group style file
Suppose i want to group 2 or more style of different layers into one SLD file. How can i do it ? A pointer towards the working example or document will do. Or any alternative styling example such as ...
3 votes
1 answer
346 views
Graphic style not working for line feature in GeoServer?
I am trying to use a graphic style (in ysld format) to style a line feature. The end goal is to style the line as dashed line with a picture or a circle/times in the gaps of the dashes. I tried to use ...
1 vote
0 answers
102 views
How to successfully call CQL in YSLD?
I am trying to create a web map using GeoServer, and doing styling via YSLD. According to YSLD documentation, I should be able to include CQL in order to do filtering. For a test, I am using ...
1 vote
1 answer
172 views
Creating YSLD file on the geoserver
Couldn't find any information about creating YSLD file (for styling my map, because it easiest way to add everything, what I want). I am working on the Geoserver site, and as "style" I can create only ...