[Mapserver-users] Newbie Itemnquery question

Richie Pierce Richard.Pierce at mail.state.ar.us
Sun Jan 18 17:30:10 PST 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C3DE2B.C7861A04
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I'm just getting started with Mapserver and have a couple of questions.
I've got a text box that a user enters a parcel number and queries the
parcel layer.  Just like the CGI demo it is returning a zoomed image and
a cached cached.  I am wanting the return to be in the main map so that
the user is still able to use the query and zoom tools.  I would prefer
to continue using CGI and not have to delve into scripting.  I also
wanted to be able to use partial searches and haven't been able to get
that to work.  Any help would be greatly appreciated.  Thanks

=20

<  My Form looks like this >

=20

<form method=3DGET action=3D"/cgi-bin/mapserv.exe">

<input type=3D"hidden" name=3D"map"
value=3D"c:\..\wwwroot\cross_co\cross_co_query.map">

<input type=3D"hidden" name=3D"program" value=3D"/cgi-bin/mapserv.exe">

<input type=3D"hidden" name=3D"map_web_imagepath" =
value=3D"C:\tmp\ms_tmp\">

<input type=3D"hidden" name=3D"map_web_imageurl" value=3D"/ms_tmp/">

<input type=3D"hidden" name=3D"mapext" value=3D"shapes">

<input type=3D"hidden" name=3D"savequery" value=3D"true">

<input type=3D"hidden" name=3D"layer" value=3D"Parcel Points">

<input type=3D"hidden" name=3D"mode" value=3D"itemnquery">

<input type=3D"hidden" name=3D"qlayer" value=3D"parcel_points">

<input type=3D"hidden" name=3D"qitem" value=3D"parcel_id">

<input type=3D"TEXT" size=3D"30" name=3D"qstring" value=3D"">

<input type=3D"submit" value=3D"Search">

</form>

=20

=20

< My Layer entry in map file >

LAYER

  NAME parcel_points

  TYPE POINT

  DATA structures_pt

  STATUS OFF

  METADATA

    "DESCRIPTION"   "parcel_points"

    "RESULT_FIELDS" "parcel_id"

  END

  CLASSITEM 'parcel_id'

  CLASS=20

    SYMBOL 'circle'

    COLOR 255 2 78

    SIZE 10

    NAME 'parcel_points'

    TEMPLATE "parcel.html"       # this template looks just like the
Itasca demo template

  END

=20

END

=20

=20

=20

=20

=20

=20

=20

Richie Pierce

GIS Cadastral Specialist

Arkansas Geographic Information Office

124 W. Capitol St.

Little Rock, AR 72201

(w) 501-682-2937

(c) 501-416-CAMP

www.gis.state.ar.us

=20


------_=_NextPart_001_01C3DE2B.C7861A04
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I’m just getting started with Mapserver and =
have a
couple of questions.  I’ve got a text box that a user enters =
a
parcel number and queries the parcel layer.  Just like the CGI demo =
it is
returning a zoomed image and a cached cached.  I am wanting the =
return to
be in the main map so that the user is still able to use the query and =
zoom
tools.  I would prefer to continue using CGI and not have to delve =
into
scripting.  I also wanted to be able to use partial searches and =
haven’t
been able to get that to work.  Any help would be greatly
appreciated.  Thanks</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><  My Form looks like this =
></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><form method=3DGET
action=3D"/cgi-bin/mapserv.exe"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"map"
value=3D"c:\..\wwwroot\cross_co\cross_co_query.map"></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"program"
value=3D"/cgi-bin/mapserv.exe"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"map_web_imagepath"
value=3D"C:\tmp\ms_tmp\"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"map_web_imageurl"
value=3D"/ms_tmp/"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"mapext"
value=3D"shapes"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"savequery"
value=3D"true"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"layer"
value=3D"Parcel Points"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"mode"
value=3D"itemnquery"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"qlayer"
value=3D"parcel_points"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"hidden" =
name=3D"qitem"
value=3D"parcel_id"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"TEXT" =
size=3D"30"
name=3D"qstring" value=3D""></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><input type=3D"submit"
value=3D"Search"></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'></form></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>< My Layer entry in map file =
></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>LAYER</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  NAME parcel_points</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  TYPE POINT</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  DATA structures_pt</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  STATUS OFF</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  METADATA</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>    =
"DESCRIPTION"  
"parcel_points"</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>    "RESULT_FIELDS" =
"parcel_id"</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  END</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  CLASSITEM 'parcel_id'</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  CLASS </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>    SYMBOL 'circle'</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>    COLOR 255 2 78</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>    SIZE 10</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>    NAME =
'parcel_points'</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>    TEMPLATE =
"parcel.html"      
# this template looks just like the </span></font><font size=3D2 =
face=3DArial><span
 style=3D'font-size:10.0pt;font-family:Arial'>Itasca</span></font><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> demo =
template</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>  END</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>END</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Richie Pierce</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>GIS Cadastral Specialist</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
  font-family:Arial'>Arkansas</span></font><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'> Geographic Information =
Office</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>124 </span></font><font size=3D2 face=3DArial><span
  style=3D'font-size:10.0pt;font-family:Arial'>W. Capitol =
St</span></font><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
  font-family:Arial'>Little Rock</span></font><font size=3D2 =
face=3DArial><span
 style=3D'font-size:10.0pt;font-family:Arial'>, </span></font><font =
size=3D2
  face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>AR</span></font><font
 size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> </span></font><font
  size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>72201</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>(w) 501-682-2937</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>(c) 501-416-CAMP</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>www.</span></font><font size=3D2 face=3DArial><span
 style=3D'font-size:10.0pt;font-family:Arial'>gis</span></font><font =
size=3D2
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>.state.ar.us</span></font></=
p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C3DE2B.C7861A04--



More information about the MapServer-users mailing list