AW: [mapserver-users] class, expressions

Oliver Wesp wesp@gdv.com
Mon, 23 Sep 2002 14:55:52 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C26311.4FDD1D00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Have you tried to change the field name to uppercase ([SIG_NBR]).
Usually all field names in dbf-files are uppercase.
=20
greetings=20
=20
Oliver

-----Urspr=FCngliche Nachricht-----
Von: owner-mapserver-users@lists.gis.umn.edu
[mailto:owner-mapserver-users@lists.gis.umn.edu] Im Auftrag von Gernot
Katzlberger
Gesendet: Montag, 23. September 2002 11:57
An: mapserver-users@lists.gis.umn.edu
Betreff: [mapserver-users] class, expressions


Hi all,
=20
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.
=20
here is the part of my mapfile=20
=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
=20
cheers,
gernot
=20
=20
........................................................................
......:
Gernot Katzlberger
=20
Institut fuer Geographie und Regionalforschung
Universitaet Wien
Kartographie und Geoinformation
=20
Universitaetstr. 7, A-1010 Wien, AUSTRIA
=20
Tel: (+43 1) 4277 48657
E-mail:  <mailto:katz@atlas.gis.univie.ac.at>
katz@atlas.gis.univie.ac.at
www:  <http://www.gis.univie.ac.at/karto>
http://www.gis.univie.ac.at/karto
:.......................................................................
......:
Atlas of Eastern and Southeastern Europe:=20
                <http://www.aos.ac.at> http://www.aos.ac.at
:.......................................................................
......:


------=_NextPart_000_0003_01C26311.4FDD1D00
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=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Nachricht</TITLE>

<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D220095112-23092002><FONT face=3DArial color=3D#0000ff =
size=3D2>Have=20
you tried to change the field name to uppercase ([SIG_NBR]). Usually all =
field=20
names in dbf-files are uppercase.</FONT></SPAN></DIV>
<DIV><SPAN class=3D220095112-23092002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D220095112-23092002><FONT face=3DArial color=3D#0000ff =

size=3D2>greetings </FONT></SPAN></DIV>
<DIV><SPAN class=3D220095112-23092002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D220095112-23092002><FONT face=3DArial color=3D#0000ff =

size=3D2>Oliver</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Dde dir=3Dltr =
align=3Dleft><FONT face=3DTahoma=20
  size=3D2>-----Urspr=FCngliche Nachricht-----<BR><B>Von:</B>=20
  owner-mapserver-users@lists.gis.umn.edu=20
  [mailto:owner-mapserver-users@lists.gis.umn.edu] <B>Im Auftrag von =
</B>Gernot=20
  Katzlberger<BR><B>Gesendet:</B> Montag, 23. September 2002 =
11:57<BR><B>An:</B>=20
  mapserver-users@lists.gis.umn.edu<BR><B>Betreff:</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>&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=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>&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;=20
  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:=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>&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></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0003_01C26311.4FDD1D00--