Opened 20 years ago

Closed 13 years ago

#635 closed defect (worksforme)

BUG drawing ellipses

Reported by: bugzilla@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer CGI Version: 4.2
Severity: normal Keywords:
Cc:

Description (last modified by tbonfort)

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 2 END 
        END 
 
        SYMBOL 
                NAME "cross" 
                TYPE vector 
                POINTS 
                        1 0 
                        1 2 
                        -99 -99 
                        0 1 
                        2 1 
                END 
        END

Attachments (1)

ellipsebug.png (1.3 KB ) - added by bugzilla@… 20 years ago.
Example.Ellipse is not vertically well aligned.

Download all attachments as: .zip

Change History (3)

by bugzilla@…, 20 years ago

Attachment: ellipsebug.png added

Example.Ellipse is not vertically well aligned.

comment:1 by bugzilla@…, 20 years ago

Version: 4.04.2
I have tested this bug on mapserver 4.2 with the same result. 

comment:2 by tbonfort, 13 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

works correctly in 6.0 (and maybe before)

Note: See TracTickets for help on using tickets.