[mapserver-users] SLD symbols in MapServer

Seth G sethg at geographika.co.uk
Tue Aug 29 10:01:21 PDT 2017


Hi all,

I've been trying out the applySLD functions in MapScript. A symbol in
the SLD containing the following:

<se:WellKnownName>circle</se:WellKnownName>

Produces a Mapfile style such as:

      STYLE
        COLOR 236 165 77
        OUTLINECOLOR "#00000000"
        SIZE 9
        SYMBOL "sld_mark_symbol_circle_filled"
      END # STYLE


There are a whole set of these symbol names defined in
https://github.com/mapserver/mapserver/blob/master/mapogcsld.c 

#define SLD_LINE_SYMBOL_NAME "sld_line_symbol"
#define SLD_LINE_SYMBOL_DASH_NAME "sld_line_symbol_dash"
#define SLD_MARK_SYMBOL_SQUARE "sld_mark_symbol_square"
#define SLD_MARK_SYMBOL_SQUARE_FILLED "sld_mark_symbol_square_filled"
#define SLD_MARK_SYMBOL_CIRCLE "sld_mark_symbol_circle"
#define SLD_MARK_SYMBOL_CIRCLE_FILLED "sld_mark_symbol_circle_filled"
#define SLD_MARK_SYMBOL_TRIANGLE "sld_mark_symbol_triangle"
#define SLD_MARK_SYMBOL_TRIANGLE_FILLED
"sld_mark_symbol_triangle_filled"
#define SLD_MARK_SYMBOL_STAR "sld_mark_symbol_star"
#define SLD_MARK_SYMBOL_STAR_FILLED "sld_mark_symbol_star_filled"
#define SLD_MARK_SYMBOL_CROSS "sld_mark_symbol_cross"
#define SLD_MARK_SYMBOL_CROSS_FILLED "sld_mark_symbol_cross_filled"
#define SLD_MARK_SYMBOL_X "sld_mark_symbol_x"
#define SLD_MARK_SYMBOL_X_FILLED "sld_mark_symbol_x_filled"

Are these symbols available anywhere? Or should we implement these
ourselves?
Any information on the above would be much appreciated. 

Regards,

Seth

--
web:http://geographika.co.uk
twitter: @geographika



More information about the MapServer-users mailing list