[mapserver-users] Mapserver 3.7 ItemQuery

netGIS Site Manager netGIS Site Manager" <siteman@netgis.nl
Tue, 26 Nov 2002 20:01:12 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0073_01C29586.91DF6C10
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello listmembers!

I recently joined this list, being a former MapInfo employee, I am =
trilled by all the functionallity with OGR! This beats MapXtreme on all =
fronts!

I got a small pilot running at  =
http://netgis.mine.nu/cgi-bin/mapserv.exe?map=3D%2Fdata%2Fzeeland.map. =
All works excellent.

However, I can't get my itemquery to run.

currently I have the querable layer like this:
(Municipalities)

LAYER
  NAME gemeente
  DATA gemeente_region
  STATUS DEFAULT
  TYPE POLYGON
#    FILTERITEM "MUNNAME"
#    FILTER "value"
  CLASS
    NAME "Gemeente"
    TEMPLATE zeeland_template.htm
    OUTLINECOLOR 0 0 0
  END
END

The query I ran against it (when the # signs where out) was:

http://netgis.mine.nu/cgi-bin/mapserv.exe?map=3D%2Fdata%2Fzeeland.map&qla=
yer=3Dgemeente&mode=3Ditemnquery&item=3Dgemeente&value=3DGOES

But I can't get it to work! I even switched to 3.7, but no difference. =
Eventually I completely lost track of my actions, an having the FILTER =
there without the # even made my entire layer disapear..

Can anyone tell me the exact syntax for the query? Is it documented =
somewhere cause I can't seem to find it...

I would also like to take part in documenting the features in an =
objectmodel, who can tell me where I can join?

kind regards!

Milo van der Linden
www.netgis.nl
Hogeweg 63, 4328PB  Burgh Haamstede
Zeeland, The Netherlands
milo@netgis.nl


------=_NextPart_000_0073_01C29586.91DF6C10
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.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello listmembers!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I recently joined this list, being a =
former MapInfo=20
employee, I am trilled by all the functionallity with OGR! This beats =
MapXtreme=20
on all fronts!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I got a small pilot running =
at&nbsp;<FONT=20
face=3D"Times New Roman" size=3D3> <A=20
href=3D"http://netgis.mine.nu/cgi-bin/mapserv.exe?map=3D%2Fdata%2Fzeeland=
.map">http://netgis.mine.nu/cgi-bin/mapserv.exe?map=3D%2Fdata%2Fzeeland.m=
ap</A><FONT=20
face=3DArial size=3D2>. All works excellent.</FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>However, I can't get my itemquery to=20
run.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>currently I have the querable layer =
like=20
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(Municipalities)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp; NAME gemeente<BR>&nbsp; =
DATA=20
gemeente_region<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; TYPE=20
POLYGON<BR>#&nbsp;&nbsp;&nbsp; FILTERITEM =
"MUNNAME"<BR>#&nbsp;&nbsp;&nbsp;=20
FILTER "value"<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME=20
"Gemeente"<BR>&nbsp;&nbsp;&nbsp; TEMPLATE=20
zeeland_template.htm<BR>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<BR>&nbsp;=20
END<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The query I ran against it (when the # =
signs where=20
out) was:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://netgis.mine.nu/cgi-bin/mapserv.exe?map=3D%2Fdata%2Fzeeland=
.map&amp;qlayer=3Dgemeente&amp;mode=3Ditemnquery&amp;item=3Dgemeente&amp;=
value=3DGOES">http://netgis.mine.nu/cgi-bin/mapserv.exe?<FONT=20
face=3D"Times New Roman"=20
size=3D3>map=3D%2Fdata%2Fzeeland.map&amp;qlayer=3Dgemeente&amp;</FONT>mod=
e=3Ditemnquery&amp;item=3Dgemeente&amp;value=3DGOES</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But I can't get it to work! I even =
switched to 3.7,=20
but no difference. Eventually I completely lost track of my actions, an =
having=20
the FILTER there without the # even made my entire layer =
disapear..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone tell me the exact syntax for =
the query?=20
Is it documented somewhere cause I can't seem to find it...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I would also like to take part in =
documenting the=20
features in an objectmodel, who can tell me where I can =
join?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>kind regards!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Milo van der Linden</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://www.netgis.nl">www.netgis.nl</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hogeweg 63, </FONT><FONT face=3DArial=20
size=3D2>4328PB&nbsp; Burgh Haamstede</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Zeeland, </FONT><FONT face=3DArial =
size=3D2>The=20
Netherlands</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:milo@netgis.nl">milo@netgis.nl</A></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0073_01C29586.91DF6C10--