FW: [UMN_MAPSERVER-USERS] symbols changing color

John Bolster jb at NUCOMP.COM
Mon Oct 11 09:40:52 PDT 2004


Steve,

One final question on this: the dummy layer seems to draw one copy of the
symbol centered at 0,0 at the top left of the image, so part of it shows in
the corner of the map. Is there any way to make this not visible?

Thanks,
John

-----Original Message-----
From: John Bolster [mailto:jb at nucomp.com]
Sent: Sunday, October 10, 2004 11:02 AM
To: Stephen Woodbridge
Subject: RE: [UMN_MAPSERVER-USERS] symbols changing color


Thank you so much. Your dummy layers completely handles my problem.

John

> -----Original Message-----
> From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
> Sent: Saturday, October 09, 2004 7:52 PM
> To: John Bolster
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] symbols changing color
>
>
> This is a know problem.
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306
> Read the bug, I posted some workarounds.
>
> -Steve W.
>
> John Bolster wrote:
>
> > Hi all,
> >
> > I defined a gif image as an interstate shield used in an
> annotation layer.
> > Now when I zoom in and out the color of the shields change on the output
> > map. The bulk of each shield should be pure blue, yet it becomes purple
> > sometimes and a light blue other times. They vary when I change the line
> > color of the underlying interstate line layer and also when I
> turn on and
> > off other layers (county lines and place polygons). Below are
> how my symbol
> > and annotation layer are defined. I can't see how mapserver is
> changing the
> > color of the gif--any suggestions on how I can get it to stay
> the same color
> > at all scales?
> >
> > MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
> >
> > Thanks in advance,
> > John Bolster
> >
> >     SYMBOL
> >         NAME 'int'
> >         TYPE pixmap
> >         IMAGE "./intsh.gif"
> >     END
> >
> >     LAYER
> >       NAME intlabels
> >       GROUP "hwy"
> >       TYPE annotation
> >       STATUS off
> >       DATA nhpn
> >       PROJECTION proj=latlong END
> >       CLASSITEM 'type'
> >       LABELITEM 'num'
> >       LABELMAXSCALE 4000000
> >       CLASS
> >         EXPRESSION "I"
> >         COLOR 0 0 0
> >         SYMBOL "int"
> >         LABEL
> >           SIZE tiny
> >           POSITION CC
> >           BUFFER 2
> >           MINDISTANCE 200
> >           COLOR 255 255 255
> >         END
> >       END
> >     END
> >
>
>



More information about the MapServer-users mailing list