[mapserver-users] rotation issue using mores symbols for a class

Domenico Febbo domenico.febbo at gmail.com
Fri Sep 3 04:25:30 PDT 2010


---------- Forwarded message ----------
From: DFE <mimmopasticcio at gmail.com>
Date: 2010/9/3
Subject: rotation issue using mores symbols for a class
To: mapserver-users at lists.osgeo.org


Hi all,
using a POINT Layer, I need to use a CLASS with two symbols: i.e. two
triangles one inside the other.

I followed the reference [1] and everything work as aspected excepet when I
applied a rotation using the ANGLE property: if the ANGLE value isn't a
"standard" value like 0°, 90° etc. the inner shape isn't centered inside the
bigger, see [2].

I'm using Mapserver 5.6.3,
following the mapfile part.

    LAYER
        NAME 'layer_sht'
        TYPE POINT
        DUMP true
        TEMPLATE fooOnlyForWMSGetFeatureInfo
        EXTENT 5 35 25 50
        DATA '../tracks.shp|layerid=0'
        METADATA
          'ows_title' 'layer_sht'
        END
        STATUS OFF
        TRANSPARENCY 100
        PROJECTION
        'proj=longlat'
        'ellps=WGS84'
        'datum=WGS84'
        'no_defs'
        END
        CLASS
          NAME 'IS_SHT'
          EXPRESSION ( '[IS_SHT]' eq 'Y' ) )
            STYLE
                SYMBOL "triangle3"
                #SIZE 16
                COLOR 255 0 0
                #OUTLINECOLOR 0 0 0
                ANGLE [COURSE]
            END
            STYLE
                SYMBOL "triangle3"
                SIZE 8.0
                #OUTLINECOLOR 0 0 0
                COLOR 0 0 0
                ANGLE [COURSE]
            END
        END
    END

What is the best way to paint that symbols?
Thanks in advance,
Domenico.
[1]
http://mapserver.org/mapfile/symbology/construction.html#sym-construction
[2] http://shareimage.org/images/jc2mjqtm5mumqrlkvd2u.png
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100903/4c7d09a1/attachment.htm>


More information about the MapServer-users mailing list