[mapserver-users] creating (vector/svg) symbols dynamically with MapServer

Elias Wolf ewolf at codematix.de
Mon Sep 19 00:05:42 PDT 2016


Hello,

I am working on a WMS that deals with Inland Electronic Navigational 
Chart (IENC) data.
Most of its point features can be rendered by simple *.gif files in the 
map-file like that:

STYLE
     SYMBOL 'foobar'
END

where 'foobar' is linked to a certain *.gif file.

This works fine. But now I want to create symbols that can't be rendered 
by simple gif-files,
because - in a way - they have to be dynamic. Let me explain what I need.

I want to create symbols like those two on the attached screenshot. 
These symbols consist of three parts:
- One Point in the center
- Two dashed lines that start at this centerpoint and point into certain 
directions
- A "part" of a circle, that is spanned between the two dashed lines 
(red on screenshot).



As you can see, the structure of those symbols is always the same, but 
depending on the angle of the dashed lines,
the symbols can look different (e.g. on the left symbol of the 
screenshot you can see the part of the circle very well,
whereas on the right side symbol the "circle" is just a tiny little area 
between the lines).
What should stay the same is the radius of the "part-circle" and the 
length of the dashed lines.

What I have:
- The coordinates of the center point
- The directions of the dashed lines (in degree)

Now, my question is, if it is possible to create these kind of symbols 
with Mapserver.
I'm thinking of SVG-Symbols or a combination of VECTOR Symbols like that:

SYMBOL
         NAME 'square'
         TYPE VECTOR
         FILLED TRUE
         POINTS
                 0 0
                 0 2
                 2 2
                 2 0
                 0 0
         END
END

If anyone got an idea, I would really appreciate it :-)

Thanks in advance.
Elias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160919/658d12fa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jpgpcibnaiiepeho.png
Type: image/png
Size: 2501 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160919/658d12fa/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lights_symbol_svg.png
Type: image/png
Size: 2896 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160919/658d12fa/attachment-0001.png>


More information about the mapserver-users mailing list