[Mapserver-users] BUG drawing ellipses

Paco Regodon mapserver at meteologica.es
Wed Apr 28 10:06:34 EDT 2004


It seems there is an error calculating ellipses center. It works fine drawing
circles but fails with ellipses. It must be related with different x and y
radius.

You can test it with this map directives:

	SIZEUNITS meters
               CLASS
                        SYMBOL "ellipse"
                        COLOR        255 128 128
                        OUTLINECOLOR 192 000 000
			# 4000 x 3000 (width x height).
                        SIZE         3000
                        OVERLAYSYMBOL "cross"
                        OVERLAYCOLOR 000 000 000
                        OVERLAYSIZE  3000
                END
        END

        SYMBOL
                NAME 'ellipse'
                TYPE ELLIPSE
                FILLED TRUE
                POINTS 4 3 END
        END

        SYMBOL
                NAME "cross"
                TYPE vector
                POINTS
                        1 0
                        1 2
                        -99 -99
                        0 1
                        2 1
                END
        END


The cross is not centered into the ellipse.

Also, note that documentation is wrong when it says (about SIZE) "Height, in
pixels, of the symbol" instead of "Height, in SIZEUNITS, of the symbol".




More information about the mapserver-users mailing list