geostyler / geostyler-openlayers-parser

GeoStyler Style Parser implementation for OpenLayers styles
BSD 2-Clause "Simplified" License
36 stars 26 forks source link

convert sld with shape://slash not look the same. #798

Open tltk90 opened 3 months ago

tltk90 commented 3 months ago

Bug

Describe the bug When convert an sld that have shape://slash in it. it not look the same is in the geoserver. instead of straight line it look as a dashed line.

To Reproduce Steps to reproduce the behavior:

  1. Go to sandbox
  2. See the style of the polygon

Expected behavior The line inside the polygon will not be dashed

jansule commented 3 months ago

Good point @tltk90! Same applies for shape:backslash.

Are you planning on providing a fix for this?

jansule commented 3 months ago

Just as a side note: The lines themselves are not dashed, the impression of a dashed line is based the way fill patterns are created. These are basically small squares where, in our case slashes, will be placed repeatedly on a grid. If the slashes do not touch the ends of the squares (e.g. if there is a padding) then it will look like a dashed pattern.