Multiple Layer Queries
Rebecca Colwell
rcolwell at WILLCOUNTYILLINOIS.COM
Thu Aug 25 09:04:48 PDT 2005
Hi Everybody,
I'm working on a new mapserver app after a long hiatus. I'd like to query
two layers (Parcels and Zoning Districts)and have their attributes shown in
the QueryResults_template.html. I'm using NQUERY, but am still only getting
results from one layer in the results table.
I know this is not a new question, but I'm having a hard time deciphering
all the necessary steps from the tutorial, and haven't found the answers on
previous list posts. I dont understand header/footer files. In case
thats part of the answer, please share their significance in the process.
Any help would be most appreciated. I'll post my queryResults_template.html
below in case that'll help unlock the mystery.
Thanks!
~Becky
<html>
<head>
<title>Airport Query Results</title>
</head>
<body>
<b><i><font size="5" face="Georgia, Times New Roman, Times, serif">2005 Will
County Regional Airport<br>
</font></i></b>
<table>
<tr>
<td width="300" valign="top"><br><p><font
face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><br>
<img
src="/cgi-bin/mapserv?map=/home/colwell/public_html/Airport2/Map2.map&mapsize=300+225&mapxy=[shpmidx]+[shpmidy]&mapext=[shpext_esc]&scale=50000&state=[PIN]&mode=map"
border="1"></font></p></td>
</tr>
</table>
<br>
<br>
<table width="331" border="1" cellspacing="2" cellpadding="0" height="167">
<tr>
<td></td>
<td align="right"></td>
</tr>
<tr>
<td>Parcel #</td>
<td align="right">[PIN]</td>
</tr>
<tr>
<td>Owner(s)</td>
<td align="right">[OWNER_1]</td>
</tr>
<tr>
<td>Address</td>
<td align="right">[STREET]</td>
</tr>
<tr>
<td>City/State/Zip</td>
<td align="right">[CITY], [ZIP1]</td>
</tr>
<tr>
<td>Township</td>
<td align="right">[TWP_NAME]</td>
</tr>
<tr>
<td>Zowning District</td>
<td align="right">[ZONE_TYPE]</td>
</tr>
</table>
<p></p>
<table width="331" border="1" cellspacing="2" cellpadding="0" height="98">
<tr>
<td>Sale Date</td>
<td align="right"></td>
</tr>
<tr>
<td>Sale Amount</td>
<td align="right"></td>
</tr>
<tr>
<td>Acreage</td>
<td align="right">[ACREAGE] acres</td>
</tr>
<tr>
<td></td>
<td align="right"></td>
</tr>
</table>
<p><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"></font></p>
</body>
</html>
More information about the MapServer-users
mailing list