Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hatching in geoserver results in gaps if angle != 0 #10

Closed
pvgenuchten opened this issue Sep 26, 2019 · 2 comments
Closed

hatching in geoserver results in gaps if angle != 0 #10

pvgenuchten opened this issue Sep 26, 2019 · 2 comments
Labels
SLD Issues related to SLD style (GeoServer)

Comments

@pvgenuchten
Copy link
Contributor

Geoserver currently supports hatching in -45,0,45,90 degrees, using backslash, vertline, slash and horline symbols.

Current implementation to rotate horline is not optimal, because it leaves gaps if the angle not is 0.

Suggestion when creating creating sld for hatch in geoserver is to round to the nearest 45% angle and select the relevant symbol

A conversion could be something like:

quarters=Math.floor((angle+22.5)/45);
quarter = quarters-Math.floor(quarters/4)*4;

if quarter==0:
  sym="vertline" 
else if quarter==1:
  sym="slash" 
else if quarter==2:
 sym="horline" 
else:
  sym="backslash" 
@pvgenuchten
Copy link
Contributor Author

see also https://gis.stackexchange.com/questions/262417/sld-break-in-hatch#263007 for alternative approach

@pvgenuchten pvgenuchten added the SLD Issues related to SLD style (GeoServer) label Sep 26, 2019
@pvgenuchten
Copy link
Contributor Author

in latest version hatch has been fully removed? I get empty fill when using hatch on geoserver...

@volaya volaya closed this as completed in 53d01eb Nov 12, 2019
GeoSander pushed a commit that referenced this issue Dec 8, 2021
* Install submodules in setup.py

* Create worflow to notify camptocamp/lyrx2sld on updates

* Add custom event type

* added support for HSV colors in arcgis format

* added library version

* some changes to style2style

* add version to SLD output

* added mapping for esri fonts markers

* Delete notify.yaml

* Add GitHub Action to notify lyrx2sld on updates

* Update notify.yaml

* Update notify.yaml

* fix for hatch fill from arcgis format

* Update mapping of ESRI symbols

* fixed case of no color value in arcgis format

* handle case of possible missing fieldValues in arcgis format

* fixed case of missing halo symbol in arcgis format

* correctly handle case of CIMUniqueValueRenderer with no groups

* support for CIMPictureMarker

* handle icons on style2style.py

This changes the return from togeostyler and fromgestyler methods for all formts

* handle case of missing label property in arcgis format

* show error on empty geostyler result

* added support for CIMClassBreaksRenderer

* prevent exception if rgb values are float in arcgis format

* round dash definition values when float values are used in arcgis format

* fixed issue with when arcgis style has no else rule

* fied cmyk2rgb conversion and usage of scale dependency for labels

* minor fixes for lyrx2geostyler conversion

* invert order of symbolizers when converting from lyrx into geostyler

* Reverse symbol order

* Typo

* reverted support for z-ordering

* removed unused method

* LYRX: don't convert outline of polygons to line symbolizer

* fixed dashed outlines and hatched fills in lyrx2geostyler conversion

* added support for concatenated strings from lyrx format

* removed unused code

* fixed concatenation of strings in labels in arcgis format

* added support for rotation in lyrx to geostyler conversion

Also, this commit fixes the handling of min/max scale denominators

* Fix rotation sign

* Add support for symbol transparency (#10)

* support whereClause in conversion of labels from lyrx (#11)

* Improve symbol support (#13)

* Use symbol fill color, refine opacity support

* Use stroke width, default to 0

* Default symbol fill color to white

* Add support for null value comparison (#14)

GEO-4833

* do not add polygon fill if not present in lyrx source

* added support for CIMGrayColor in lyrx

* added partial support for CIMVectorMarker

* correctly add 'group' vendor option in sld output

* fixed halos and class breaks in lyrx->geostyler conversion

* removed workflows

Co-authored-by: Cécile Vuilleumier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SLD Issues related to SLD style (GeoServer)
Projects
None yet
Development

No branches or pull requests

1 participant