[mapserver-users] Orientation of vector symbols on a LINE
TC Haddad
tchaddad at gmail.com
Wed Aug 28 16:31:29 PDT 2013
Hello, I'm trying to understand symbol orientation and (maybe) use of
ANCHORPOINT on a line in Mapserver 6.2.
The vector symbol that I have been using for line cartography in MapServer
6.0.3 is below, and I am trying to get the same effect in Mapserver 6.2.1.
SYMBOL
NAME "wavy_line"
TYPE vector
POINTS
0 0
1 1
2 1
3 0
4 -1
5 -1
6 0
END
END
Display in Mapserver 6.0.3:
https://dl.dropboxusercontent.com/u/42845001/mapserver6.0.3.png
Relevant Style bloc from Mapserver 6.0.3:
STYLE
SYMBOL "wavy_line"
WIDTH 1
SIZE 2
GAP -1
COLOR 0 0 0
END
This did not translate directly to Mapserver 6.2.1, but I came close with
this:
STYLE
SYMBOL "wavy_line"
WIDTH 1
SIZE 4
GAP 6
COLOR 0 0 0
END
which produced this:
https://dl.dropboxusercontent.com/u/42845001/mapserver6.2.1.png
Obviously I am missing something about how to get the symbol to orient
along the line, I played with ANCHORPOINT as that was new in 6.2 and it
seemed like the default of 0.5 0.5 should work for my symbol, but I also
tried several other value combinations and it seemed to merely shift the
symbol around laterally, while maintaining an upright orientation.
So I'm a bit confused on how to achieve the original effect, (behavior
something like the equivalent of FOLLOW for Labels). Any pointers
appreciated...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130828/8d84269c/attachment.htm>
More information about the MapServer-users
mailing list