line pattern fills in geoserver (and qgis)

Description

A line pattern fill as generated by qgis is not implemented, qgis chooses to use a wellknowname with a value 'horline', not sure where that comes from, the specification (http://portal.opengeospatial.org/files/?artifact_id=16700) does not list that value:

"The WellKnownName element gives the well-known name of the shape of the mark.
Allowed values include at least “square”, “circle”, “triangle”, “star”, “cross”, and “x”,
though map servers may draw a different symbol instead if they don't have a shape for all
of these. The default WellKnownName is “square”"

Geoserver instead seems uses a wellknownname of shape://slash, which is also not listed in the spec. Can we align this behaviour, or support both?

Geoserver seems not able to manage about the properties "rotation" and "displacement" of the graphic

From the 1.1 spec:
"The Rotation element gives the rotation of a graphic in the clockwise direction about its
center point in decimal degrees, encoded as a floating-point number".

A potential challenge here is the alignment of the repeated symbols, do you rotate each symbol or the full canvas.

"The Displacement gives the X and Y displacements from the original geometry. This
element may be used to avoid over-plotting of multiple PolygonSymbolizers for one
geometry or supplying "shadows" of polygon gemeotries. The displacements are in units
of pixels above and to the right of the point. The default displacement is X=0, Y=0.".

Style as generated by QGIS (se1.1)

<seolygonSymbolizer>
<se:Fill>
<se:GraphicFill>
<se:Graphic>
<se:Mark>
<se:WellKnownName>horline</se:WellKnownName>
<se:Stroke>
<se:SvgParameter name="stroke">#86158e</se:SvgParameter>
<se:SvgParameter name="stroke-width">5</se:SvgParameter>
</se:Stroke>
</se:Mark>
<se:Size>18</se:Size>
<se:Rotation>
<ogc:Literal>30</ogc:Literal>
</se:Rotation>
</se:Graphic>
</se:GraphicFill>
</se:Fill>
</seolygonSymbolizer>

Environment

None

Activity

Show:
Ian Turton
September 29, 2017, 9:53 AM

Actually in this case you would probably want shape://horline

see http://docs.geoserver.org/stable/en/user/styling/sld/extensions/pointsymbols.html#shape-symbols for the other WKN that GeoServer knows.

Andrea Aime
October 7, 2018, 10:05 AM

Closing feature/improvement requests that have seen no changes in one year.

This does not mean the request was not valid, we just recognize it failed to gather developer resources for a long time.

Before re-opening please read carefully this guide and gather development resources to back the request:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

UNRESOLVED

Assignee

Unassigned

Reporter

Paul van Genuchten

Triage

None

Fix versions

None

Affects versions

None

Components

Priority

Medium
Configure