<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=480491616-19012006><FONT face=Arial color=#0000ff size=2>Prema,
</FONT></SPAN></DIV>
<DIV><SPAN class=480491616-19012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=480491616-19012006><FONT face=Arial color=#0000ff size=2>A
quick solution is to put your image tag in the header or footer template and
take it out of the main template. The header and footer get processed only
once per query. The main query template gets processed once for each
record. </FONT></SPAN></DIV>
<DIV><SPAN class=480491616-19012006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=480491616-19012006><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Prema
Selvam (sent by Nabble.com)<BR><B>Sent:</B> Thursday, January 19, 2006 10:13
AM<BR><B>To:</B> MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B>
[UMN_MAPSERVER-USERS] Problem in MapServer with Oracle Spatial - More than one
image is Loaded<BR><BR></FONT></DIV>Hi Everybody, <BR><BR> Again its Me,
<BR><BR> I can able to Connect to Oracle Spatial with MapServer and i can
fire the Itemnquery function. <BR><BR> But the problem , when i fire the
ItemQuery only one record is hilited thats the default it return only first
match record. <BR> When I fire Itemnquery more than one image is
generated that is <B>if 50 records is matched 50 same image is
loaded</B>. <BR><BR> Please give me a some solution for this
problem, below I am give the Mapfile, Template, Query and Output.
<BR><BR><B>Mapfile</B> <BR><BR> MAP <BR>
DEBUG ON <BR>
NAME
world_city <BR>
EXTENT -180 -90 180 83.60415649414 <BR>
SIZE
800 400 <BR>
SHAPEPATH '/ms4w/apps/zap/data/' <BR>
IMAGETYPE GIF
<BR> STATUS
ON <BR><BR>
SYMBOL
<BR>
NAME
"circle" <BR>
TYPE ellipse <BR>
FILLED true <BR>
POINTS <BR>
1 1 <BR>
END <BR>
END
<BR><BR> WEB <BR>
TEMPLATE 'templates/ZapTemp.html' <BR>
IMAGEPATH
'/ms4w/tmp/ms_tmp/' <BR>
IMAGEURL '/ms_tmp/'
<BR> END <BR><BR>
PROJECTION <BR>
"proj=latlong" <BR>
"ellps=WGS84" <BR>
END <BR><BR>
QUERYMAP <BR>
STATUS ON <BR>
STYLE HILITE
<BR>
COLOR 255 255 0 <BR>
END <BR><BR>
LAYER <BR>
DEBUG ON <BR><BR>
PROJECTION <BR>
"proj=latlong" <BR>
"ellps=WGS84" <BR>
END <BR><BR>
CONNECTIONTYPE
oraclespatial <BR>
CONNECTION "world/land@orcl" <BR>
DATA
"shape FROM world USING UNIQUE shapeid SRID 8307" <BR><BR>
NAME
world_point <BR>
STATUS ON
<BR>
TYPE POINT <BR><BR><BR>
DUMP
TRUE <BR><BR>
TEMPLATE "templates/ZapTemp.html" <BR><BR>
TOLERANCE 5 <BR><BR>
CLASS <BR>
NAME 'World_Class' <BR>
SYMBOL "circle"
<BR>
SIZE 7 <BR>
COLOR 128 64 64 <BR>
OUTLINECOLOR 0 0 0 <BR>
END <BR>
END # World polygon layer ends here <BR>
END <BR><BR><BR><B>Template</B> <BR><BR><HTML> <BR><body>
<BR> <IMG src="[img]"> <BR></body>
<BR></HTML> <BR><BR><BR>Query <BR><BR><A
href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/zap/htdocs/world1.map&mode=itemnquery&layer=world_point&qlayer=world_point&qitem=ploc&qstring=ploc='pondicherry'"
target=_top
rel=nofollow>http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/zap/htdocs/world1.map&mode=itemnquery&layer=world_point&qlayer=world_point&qitem=ploc&qstring=ploc='pondicherry'</A>
<BR><BR><I>ploc is the Filed name</I> <BR><BR><BR>Output file
<BR><BR><HTML> <BR><body> <BR> <IMG
src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR></body>
<BR></HTML> <BR><HTML> <BR><body> <BR>
<IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR></body>
<BR></HTML> <BR><HTML> <BR><body> <BR>
<IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR></body>
<BR></HTML> <BR><HTML> <BR><body> <BR>
<IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR></body>
<BR></HTML> <BR><HTML> <BR><body> <BR>
<IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR></body>
<BR></HTML> <BR><HTML> <BR><body> <BR>... <BR>... <BR>...
<BR><BR>Thanks & Regards <BR>Prema Selvam <BR>GISbiz <BR><BR>
<HR align=left width=300>
View this message in context: <A
href="http://www.nabble.com/Problem-in-MapServer-with-Oracle-Spatial---More-than-one-image-is-Loaded-t954228.html#a2472128">Problem
in MapServer with Oracle Spatial - More than one image is Loaded</A><BR>Sent
from the <A href="http://www.nabble.com/Mapserver---User-f1215.html">Mapserver
- User</A> forum at Nabble.com. </BLOCKQUOTE></BODY></HTML>