SIZEITEM howto ?
Fawcett, David
David.Fawcett at STATE.MN.US
Thu Nov 2 07:59:54 PST 2006
You may want to try 'ONU_ID', I notice that for the label text you use uppercase for the field name. I am not sure if case sensitivity is an issue in this case with PostGIS.
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stéphane COLZY
Sent: Thursday, November 02, 2006 9:51 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ?
Ok, but the problem is that when I do this nothing happens (the map doesn't change)
So I thought may be I'm missing something...
Here's the layer definition : onu_id is an int4 ranging from 1 to 900
LAYER
CONNECTION "user=scy password=scy dbname=vmap host=localhost port=5432"
CONNECTIONTYPE POSTGIS
DATA "the_geom from join_onu_wc USING UNIQUE ogc_fid using srid=4326"
MAXSCALE 500
METADATA
END
NAME "Cities"
PROJECTION
"init=EPSG:4326"
END
SIZEUNITS PIXELS
STATUS ON
TOLERANCEUNITS PIXELS
TYPE ANNOTATION
UNITS METERS
CLASS
NAME "DEFAULT"
LABEL
ANGLE 0.000000
ANTIALIAS TRUE
FONT "verdana"
MAXSIZE 256
MINSIZE 4
SIZE 8
TYPE TRUETYPE
BUFFER 0
COLOR 104 104 104
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE 35
OFFSET 0 0
PARTIALS TRUE
POSITION AUTO
END
METADATA
END
STYLE
ANGLE 360
COLOR 255 30 0
SIZEITEM onu_id
SYMBOL 7
END
TEXT ([ONU_CITY_NAME])
END
END
________________________________
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fawcett, David
Envoyé : jeudi 2 novembre 2006 15:26
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : Re: [UMN_MAPSERVER-USERS] SIZEITEM howto ?
Stephane,
To use this, you would add a column to your shapefile or dataset that contained an integer value for how large you would like the symbol for that feature to be drawn.
This allows you to set different symbol sizes for each feature as opposed to setting up separate classes with distinctive styles in the layer in the map file.
http://mapserver.gis.umn.edu/docs/reference/mapfile/style
David.
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stéphane COLZY
Sent: Thursday, November 02, 2006 8:16 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] SIZEITEM howto ?
Hi,
Could someone give us a brief description on how to use the STYLE / SIZEITEM property on points data ?
Like: what are the other related properties, what kind of attributes/fields are supported ?
It would be very helpful...
stephane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061102/7aa91c02/attachment.htm>
More information about the MapServer-users
mailing list