Tuesday, 14 April 2015

style - Line stroke offset in Geoserver


Does anyone know how to offset a stroke in Geoserver? For example I will color the left side of the street (line feature) red and the other side (same line feature) blue. I believe I will be using 2 LineSymbolizer for this but I don't know how to offset them. Otherwise, they will just be rendered on top of each other.


Any thoughts?



Answer



DISCLAIMER: My company financed the development of this plugin


There is a wonderful (!) plugin to achive this goal, it is Fluxomajic!


We developed it to render traffic information using Geoserver.


There is not so much documentation, you can go in to the code to get more information. An utilization example:




shap
7
4000
1

4
3
1

wms_crs


wms_width



wms_height


wms_bbox



Put the Geometry in a element, in an SLD.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...