[Geomoose-users] Expressions
Fischer, Brian
bfischer at houstonengineeringinc.com
Tue Aug 19 17:41:09 EDT 2008
I think that should do it.
Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522
________________________________
From: Jay Kapalczynski [mailto:jkapalczynski at ci.maple-grove.mn.us]
Sent: Tuesday, August 19, 2008 4:39 PM
To: Fischer, Brian; geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: RE: [Geomoose-users] Expressions
Like this?
LAYER # Watermain_Pipe
#NAME Watermain_Pipe
DATA './watermain_pipes.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 4000
MINSCALE 100
#LABELITEM 'DIAMETER'
LABELCACHE ON
CLASSITEM "DIAMETER"
CLASS
LABEL
EXPRESSION /[^6]/
TYPE TRUETYPE
FONT vera_sans
ANGLE FOLLOW
POSITION AUTO
MAXSIZE 7
SIZE 7
MINSIZE 7
ANTIALIAS TRUE
COLOR 0 0 0
#OUTLINECOLOR 255 255 192
BUFFER 2
END
END
From: Fischer, Brian [mailto:bfischer at houstonengineeringinc.com]
Sent: Tuesday, August 19, 2008 4:13 PM
To: Jay Kapalczynski; geomoose-users at lists.sourceforge.net;
geomoose-developers at lists.sourceforge.net
Subject: RE: [Geomoose-users] Expressions
Yep, you just use a regular expression: /[^6]/
This is a mapserver syntax.
Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522
________________________________
From: geomoose-users-bounces at lists.sourceforge.net
[mailto:geomoose-users-bounces at lists.sourceforge.net] On Behalf Of Jay
Kapalczynski
Sent: Tuesday, August 19, 2008 4:08 PM
To: 'geomoose-users at lists.sourceforge.net';
'geomoose-developers at lists.sourceforge.net'
Subject: [Geomoose-users] Expressions
Is there a way to form a NOT statement in the expression...
To say for instance...show me all but EXPRESSION "6"
Instead of having to write each one out that you want....say I have pipe
sizes 1-30 but 90% are 6 inches....jsut show the ones that are not 6
iches...
This should decrease the amount of labeling I have to do
CLASS
LABEL
EXPRESSION "12"
TYPE
TRUETYPE
FONT
vera_sans
ANGLE
FOLLOW
POSITION
AUTO
MAXSIZE
7
SIZE 7
MINSIZE
7
ANTIALIAS TRUE
COLOR 0
0 0
#OUTLINECOLOR 255 255 192
BUFFER 2
END
END
CLASS
LABEL
EXPRESSION "16"
TYPE
TRUETYPE
FONT
vera_sans
ANGLE
FOLLOW
POSITION
AUTO
MAXSIZE
7
SIZE 7
MINSIZE
7
ANTIALIAS TRUE
COLOR 0
0 0
#OUTLINECOLOR 255 255 192
BUFFER 2
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20080819/3b2fbb8c/attachment.html
More information about the Geomoose-users
mailing list