[mapserver-users] How do I make point bigger
Mike Smith
nospam at cnrit.tamu.edu
Thu Oct 3 07:31:55 PDT 2002
You need to define a symbol (like a "circle", perhaps) and use that
symbol in your layer definition, then you can scale that symbol. For
example, add this code to the top of your map file (just above the first
layer):
#
# Start of symbol definitions
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
Then once you've defined that symbol, you can call it inside your layer
like this:
LAYER # States
NAME "Punti"
DATA staztot
STATUS DEFAULT
TYPE POINT
CLASSITEM "CODICE"
CLASS
SYMBOL 'circle'
SIZE 100
COLOR 255 0 0
END
END
Hope this helps.
Siviero Francesco wrote:
>Sorry to disturb,
>I'm a newbie in all this (MapServer, PHP, etc..), so my question could sound
>silly.
>I'm trying to make some point bigger, but I'm not able to find how to do it.
>Here's my map file:
>
>###########
>NAME prova
>EXTENT 515783.84375 999005 801412 847791.875
>SIZE 500 300
>SHAPEPATH "C:/Inetpub/wwwroot/ProvaMAP/Shape/"
>
>LAYER # States
> NAME "Prova"
> DATA RER_provincie
> STATUS DEFAULT
> TYPE POLYGON
> CLASSITEM "PROV"
> CLASS
> NAME "BO"
> COLOR 255 255 255
> OUTLINECOLOR 0 0 0
> END # end of class object
>END # end of layer object
>
>LAYER # States
> NAME "Punti"
> DATA staztot
> STATUS DEFAULT
> TYPE POINT
> CLASSITEM "CODICE"
> CLASS
> SIZE 100 # <-------------------- This doesn't seem to work. How do
>makes points bigger?
> COLOR 255 0 0
> END # end of class object
>
>END # end of layer object
>
>END # end of map file
>################
>
>Thanks to anybody.
>Ciao
>
>
More information about the MapServer-users
mailing list