[mapserver-users] class, expressions
Stepan Kafka
stepan.kafka@centrum.cz
Mon, 23 Sep 2002 13:12:58 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01C26302.EF966310
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Try using uppercase characters in the expression:
EXPRESSION ([SIG_NBR] < 6)
Stepan Kafka
Help Service Remote Sensing
tel: +420-327514118
mailto:kafka@email.cz
http://www.bnhelp.cz
-----Puvodní zpráva-----
Od: owner-mapserver-users@lists.gis.umn.edu
[mailto:owner-mapserver-users@lists.gis.umn.edu]za uivatele Gernot
Katzlberger
Odesláno: 23. zárí 2002 11:57
Komu: mapserver-users@lists.gis.umn.edu
Predmet: [mapserver-users] class, expressions
Hi all,
I'm using Mapserver version 3.4 and have some problems with the
expressions in the classes.
In my ShapeFile the column is defined as integer, but mapsever doesn't
recognize it as integer. When I switch to EXPRESSION 1/2/3/4/5/ it works.
(it seems that mapserver only recoginzes the column as strings).
Unfortunately I need the integer values.
here is the part of my mapfile
LAYER
NAME hausnr_na
DESCRIPTION "gekündigte Wohnungen"
TYPE POINT
STATUS ON
CLASSITEM 'Sig_nbr'
DATA nichtar4
CLASS
NAME "1"
#EXPRESSION /1|2|3|4|5/ # works
EXPRESSION ([sig_nbr] < 6) #works not
SIZE 8
SYMBOL 2
COLOR 255 250 250
END
END
cheers,
gernot
............................................................................
..:
Gernot Katzlberger
Institut fuer Geographie und Regionalforschung
Universitaet Wien
Kartographie und Geoinformation
Universitaetstr. 7, A-1010 Wien, AUSTRIA
Tel: (+43 1) 4277 48657
E-mail: katz@atlas.gis.univie.ac.at
www: http://www.gis.univie.ac.at/karto
:...........................................................................
..:
Atlas of Eastern and Southeastern Europe:
http://www.aos.ac.at
:...........................................................................
..:
------=_NextPart_000_0010_01C26302.EF966310
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D741080311-23092002><FONT face=3DArial color=3D#0000ff =
size=3D2>Try=20
using uppercase characters in the expression:</FONT></SPAN></DIV>
<DIV><SPAN class=3D741080311-23092002><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D741080311-23092002><FONT face=3DArial =
size=3D2>EXPRESSION=20
([SIG_NBR] < 6)</FONT></SPAN></DIV>
<DIV><SPAN class=3D741080311-23092002><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D741080311-23092002>
<P><FONT size=3D2><SPAN class=3D741080311-23092002>Stepan=20
Kafka<BR></SPAN></FONT><FONT size=3D2>Help Service Remote =
Sensing<BR>tel:=20
+420-327514118<BR></FONT><A href=3D"mailto:kafka@email.cz" =
target=3D_blank><FONT=20
size=3D2>mailto:kafka@email.cz</FONT></A><BR><A =
href=3D"http://www.bnhelp.cz/"=20
target=3D_blank><FONT size=3D2>http://www.bnhelp.cz</FONT></A><FONT =
size=3D2>=20
</FONT></P></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader><FONT size=3D2>-----Původn=ED=20
zpr=E1va-----<BR><B>Od:</B> owner-mapserver-users@lists.gis.umn.edu=20
[mailto:owner-mapserver-users@lists.gis.umn.edu]<B>za u=9Eivatele</B> =
Gernot=20
Katzlberger<BR><B>Odesl=E1no:</B> 23. z=E1ř=ED 2002 =
11:57<BR><B>Komu:</B>=20
mapserver-users@lists.gis.umn.edu<BR><B>Předmět:</B> =
[mapserver-users] class,=20
expressions<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm using Mapserver version 3.4 and =
have some=20
problems with the expressions in the classes. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In my ShapeFile the column is defined =
as integer,=20
but mapsever doesn't recognize it as integer. W</FONT><FONT =
face=3DArial=20
size=3D2>hen I switch to EXPRESSION 1/2/3/4/5/ it works. (it seems =
that=20
mapserver only recoginzes the column as strings). Unfortunately I need =
the=20
integer values.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>here is the part of my mapfile =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME =
hausnr_na<BR> =20
DESCRIPTION "gek=FCndigte Wohnungen"<BR> TYPE POINT<BR> =
STATUS=20
ON<BR> CLASSITEM 'Sig_nbr'<BR> DATA=20
nichtar4<BR> =20
CLASS<BR> NAME=20
"1"<BR> #EXPRESSION =
/1|2|3|4|5/=20
# =
works<BR> =20
EXPRESSION ([sig_nbr] < 6) #works=20
not<BR> SIZE 8<BR> SYMBOL 2<BR> COLOR 255 250=20
250<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>END </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>cheers,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>gernot</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
=
size=3D1>................................................................=
..............:<BR>Gernot=20
Katzlberger</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT face=3DArial size=3D1>Institut fuer Geographie und=20
Regionalforschung<BR>Universitaet Wien<BR>Kartographie und=20
Geoinformation</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT face=3DArial size=3D1>Universitaetstr. 7, A-1010 Wien,=20
AUSTRIA</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D1>Tel: (+43 1) 4277 =
48657<BR>E-mail:=20
</FONT><A href=3D"mailto:katz@atlas.gis.univie.ac.at"><FONT=20
size=3D1>katz@atlas.gis.univie.ac.at</FONT></A><BR><FONT size=3D1>www: =
</FONT><A=20
href=3D"http://www.gis.univie.ac.at/karto"><FONT=20
size=3D1>http://www.gis.univie.ac.at/karto</FONT></A><BR><FONT=20
=
size=3D1>:...............................................................=
..............:<BR>Atlas=20
of Eastern and Southeastern Europe:=20
=
<BR> &nb=
sp; =20
</FONT><A href=3D"http://www.aos.ac.at"><FONT=20
size=3D1>http://www.aos.ac.at</FONT></A><BR><FONT=20
=
size=3D1>:...............................................................=
..............:</FONT></FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0010_01C26302.EF966310--