[Mapserver-users] Color Bug?

Mark Adams markadams at cuestasys.com
Tue Jul 20 08:46:46 PDT 2004


I had the same result when I accidentally used the antialias keyword in
a polygon layer at the STYLE level, without defining labels. It is meant
to apply to labels only, and you'd presume mapserver would ignore the
keyword otherwise, so this looks like a bug.

------------------------------
Mark Adams
Business & Systems Analyst
Cuesta Systems Inc.
5230 South Service Road
Burlington, ON L7L 5K2
Phone: 905-333-4544 x14
Fax: 905-333-0455
Email: markadams at cuestasys.com
 

-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of David
Fawcett
Sent: Tuesday, July 20, 2004 10:41 AM
To: Mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Color Bug?

I have two scale dependent polygon layers that represent counties in MN.
 One displays at scales greater than 2,000,000 and the other less than
2,000,000.  

I am using a MapServer 4.0 beta binary created in 8/2003 on Win2K.

Here are the two layer definitions:
____________________________________________
LAYER
    NAME basemap
    STATUS DEFAULT
    TYPE POLYGON
    DATA score
    MINSCALE 2000000
    CLASS 
       OUTLINECOLOR 153 153 153   
	   COLOR 204 204 153
    END
  END

  LAYER
    NAME basemap
    STATUS DEFAULT
    TYPE POLYGON
    DATA score
    LABELITEM "NAME"
    MAXSCALE 2000000
    CLASS 
       OUTLINECOLOR 153 153 153   #An OUTLINECOLOR with no COLOR gives
same effect as old POLYLINE
       COLOR 204 204 153
	   SYMBOL 'dashed1'
       LABEL
          TYPE TRUETYPE
          FONT "arial-bold"
          SIZE 10
          POSITION cc
          MINSIZE 6
          MAXSIZE 12
          COLOR 181 181 181
          SHADOWCOLOR 204 204 204 
          ANTIALIAS TRUE
          PARTIALS FALSE
          MINFEATURESIZE 40
       END

    END
  END
_____________________________________________

Both layers have the same COLOR defined, but when the larger scale
layer gets displayed, the color is different, apparently lighter.  

I have attached two .gif's to demonstrate the problem.  out.gif is a
view at a smaller scale and in.gif is a larger scale view.  

Any ideas?  Bug or PIBCAK?

Thanks, 

David.

David J. Fawcett
MN Office of Environmental Assistance




More information about the MapServer-users mailing list