[Geomoose-users] Expressions
Jay Kapalczynski
jkapalczynski at ci.maple-grove.mn.us
Wed Aug 20 10:12:05 EDT 2008
Now I am a bit confused....
I am trying to exclude all 6's and just show the other values
Instead of writing expressions for each of the 15 separate values I just want to exclude one or two....thus labeling all the others.
It appears that I will have to write every expression out to include all 15 values???? Is that correct????
Note that I am using expressions to label features...I can do that right?
I am trying to simply apply an expression to the DIAMETER field and just show values of 8
It errors out and just wont draw the feature and label
Figure I would first just try and get a single label to work
Thoughts?
LAYER # Watermain_Pipe
#NAME Watermain_Pipe
DATA './watermain_pipes.shp'
STATUS DEFAULT
TYPE annotation
MAXSCALE 4000
MINSCALE 100
CLASSITEM "DIAMETER"
CLASS
EXPRESSION "8"
STYLE
TYPE TRUETYPE
FONT vera_sans
ANGLE FOLLOW
POSITION AUTO
MAXSIZE 7
SIZE 7
MINSIZE 7
ANTIALIAS TRUE
COLOR 0 0 0
BUFFER 2
END
END
From: Dan Little [mailto:danlittle at yahoo.com]
Sent: Wednesday, August 20, 2008 7:55 AM
To: Fischer, Brian; Jay Kapalczynski; geomoose-users at lists.sourceforge.net; geomoose-developers at lists.sourceforge.net
Subject: Re: [Geomoose-users] Expressions
Actually, that will exclude anything with a 6 in it.
An easier way to go...
LAYER
CLASS
EXPRESSION '6'
# Leave this blank
END
CLASS
.... everything else ....
END
END
----- Original Message ----
From: "Fischer, Brian" <bfischer at houstonengineeringinc.com>
To: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>; geomoose-users at lists.sourceforge.net; geomoose-developers at lists.sourceforge.net
Sent: Tuesday, August 19, 2008 4:41:09 PM
Subject: Re: [Geomoose-users] Expressions
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/20080820/99e69281/attachment.html
More information about the Geomoose-users
mailing list