[mapserver-users] class, expressions

Gernot Katzlberger knozi@gmx.at
Mon, 23 Sep 2002 11:57:27 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0101_01C262F8.631D47F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

I'm using Mapserver version 3.4 and have some problems with the =
expressions in the classes.=20
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=20

LAYER
  NAME hausnr_na
  DESCRIPTION "gek=FCndigte 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=20

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:=20
               http://www.aos.ac.at
:........................................................................=
.....:

------=_NextPart_000_0101_01C262F8.631D47F0
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><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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 =

size=3D2>hen I switch to EXPRESSION 1/2/3/4/5/ it works. (it seems that =
mapserver=20
only recoginzes the column as strings). Unfortunately I need the integer =

values.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>here is the part of my mapfile =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp; NAME =
hausnr_na<BR>&nbsp;=20
DESCRIPTION "gek=FCndigte Wohnungen"<BR>&nbsp; TYPE POINT<BR>&nbsp; =
STATUS=20
ON<BR>&nbsp; CLASSITEM 'Sig_nbr'<BR>&nbsp; DATA=20
nichtar4<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME=20
"1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #EXPRESSION =
/1|2|3|4|5/=20
&nbsp;&nbsp;&nbsp; # works<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

EXPRESSION ([sig_nbr] &lt; 6)&nbsp;&nbsp;&nbsp;&nbsp; #works=20
not<BR>&nbsp;&nbsp;SIZE 8<BR>&nbsp;SYMBOL 2<BR>&nbsp; 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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D1>................................................................=
..............:<BR>Gernot=20
Katzlberger</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D1>Universitaetstr. 7, A-1010 Wien,=20
AUSTRIA</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D1>Tel: (+43 1) 4277 =
48657<BR>E-mail: </FONT><A=20
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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=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></BODY></HTML>

------=_NextPart_000_0101_01C262F8.631D47F0--