[Geoserver-devel] [JIRA] (GEOS-8306) line pattern fills in geoserver (and qgis)

Paul van Genuchten created an issue

GeoServer / ImprovementGEOS-8306

line pattern fills in geoserver (and qgis)

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Components:

styling

Created:

28/Sep/17 10:59 AM

Priority:

MediumMedium

Reporter:

Paul van Genuchten

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)

<se:PolygonSymbolizer>
<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>
</se:PolygonSymbolizer>

Add Comment

Add Comment

Get JIRA notifications on your phone! Download the JIRA Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100063-sha1:5b66ec3)

Atlassian logo