Hi William,

layer definition in map file:

LAYER
        NAME "parcel"
        DATA .....
        STATUS ON
        TYPE POLYGON
        CLASS
                COLOR -1 -1 -1
                OUTLINECOLOR 0 0 0
        END
        TEMPLATE "templ.html"
        HEADER "head.html"
        FOOTER "foot.html"
END

...
------

Do not include [img] tag in templ.html!

for eaxample
head.html
<p>query result</p>
<table>
<tr><td>parcel id</td><td>area</td></tr>

-------

templ.html
<tr><td>[PARCEL_ID]</td><td>[AREA]</td></tr>

-------
foot.html
</table>
<p>
<img border="1" src="[img]">
</p>

----------

This way you get as many data rows in the table as many selected objects in parcel layer, but only one map because the [img] tag is in the footer.

I hope this helps you.

Zoltan

On Wed, 9 Jan 2008, william paul wrote:

Please, can you give an example (Rich or Siki)?
I am using the same template for mapserver as for displaying the query results

Thank you

William


----- Original Message ----
From: Richard Greenwood <[EMAIL PROTECTED]>
To: MAPSERVER-USERS@LISTS.UMN.EDU
Sent: Wednesday, January 9, 2008 3:30:54 PM
Subject: Re: [UMN_MAPSERVER-USERS] itemnquery problems

On Jan 9, 2008 5:37 AM, william paul <[EMAIL PROTECTED]> wrote:

Hi:
I am using itemnquery mode to display results obtained from a database
query. The url looks like:

...mode=itemnguery&qlayer=qlayer&qitem=fieldtoquery&qstring=/value1|value2|valuen/

The spatial extent of the image is correct and I can see all the features
selected, but the entire web page page is displayed 14 times

Any help is appreciated

Thank you

William

Most likely you got 14 results, so MapServer drew 14 maps for you. If
you want all 14 results shown in a single map, try moving your
template definition from TEMPLATE to HEAD, and using an empty file for
the TEMPLATE.

Rich

--
Richard Greenwood
[EMAIL PROTECTED]
www.greenwoodmap.com


     
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Reply via email to