<!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>&nbsp;</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.&nbsp; The header and footer get processed only 
once per query.&nbsp; The main query template gets processed once for each 
record.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=480491616-19012006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;Again its Me, 
  <BR><BR>&nbsp;I can able to Connect to Oracle Spatial with MapServer and i can 
  fire the Itemnquery function. <BR><BR>&nbsp;But the problem , when i fire the 
  ItemQuery only one record is hilited thats the default it return only first 
  match record. <BR>&nbsp; When I fire &nbsp;Itemnquery more than one image is 
  generated that is <B>if 50 records is matched 50 same image is 
  &nbsp;loaded</B>. <BR><BR>&nbsp;Please give me a some solution &nbsp;for this 
  problem, below I am give the Mapfile, Template, Query and Output. 
  <BR><BR><B>Mapfile</B> <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; MAP <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEBUG ON <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; world_city <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  EXTENT &nbsp; &nbsp; &nbsp; &nbsp;-180 -90 180 83.60415649414 <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; 800 400 <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; SHAPEPATH &nbsp; &nbsp; &nbsp;'/ms4w/apps/zap/data/' <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IMAGETYPE &nbsp; &nbsp; &nbsp;GIF 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STATUS &nbsp; 
  &nbsp; &nbsp; ON <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME 
  "circle" <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  TYPE ellipse <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; FILLED true <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; POINTS <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 1 <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; END <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END 
  <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WEB <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  TEMPLATE &nbsp; &nbsp; 'templates/ZapTemp.html' <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IMAGEPATH 
  &nbsp; &nbsp;'/ms4w/tmp/ms_tmp/' <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IMAGEURL &nbsp; &nbsp; '/ms_tmp/' 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END <BR><BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PROJECTION <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  "proj=latlong" <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; "ellps=WGS84" <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; END <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; QUERYMAP <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STATUS ON <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE HILITE 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; COLOR 255 255 0 <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; END <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; LAYER <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; DEBUG ON <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PROJECTION <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; "proj=latlong" <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; "ellps=WGS84" <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CONNECTIONTYPE 
  oraclespatial <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; CONNECTION "world/land@orcl" <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DATA 
  "shape FROM world USING UNIQUE shapeid SRID 8307" <BR><BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &nbsp; 
  &nbsp; &nbsp; &nbsp; world_point <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STATUS &nbsp; &nbsp; &nbsp; ON 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp; POINT <BR><BR><BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DUMP 
  TRUE <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; TEMPLATE "templates/ZapTemp.html" <BR><BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  TOLERANCE 5 <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; CLASS <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  NAME 'World_Class' <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SYMBOL "circle" 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE 7 <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; COLOR 128 64 64 <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  OUTLINECOLOR 0 0 0 <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; END <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; END # World polygon layer ends here <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; END <BR><BR><BR><B>Template</B> <BR><BR>&lt;HTML&gt; <BR>&lt;body&gt; 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; <IMG src="[img]"> <BR>&lt;/body&gt; 
  <BR>&lt;/HTML&gt; <BR><BR><BR>Query <BR><BR><A 
  href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/zap/htdocs/world1.map&amp;mode=itemnquery&amp;layer=world_point&amp;qlayer=world_point&amp;qitem=ploc&amp;qstring=ploc='pondicherry'" 
  target=_top 
  rel=nofollow>http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/zap/htdocs/world1.map&amp;mode=itemnquery&amp;layer=world_point&amp;qlayer=world_point&amp;qitem=ploc&amp;qstring=ploc='pondicherry'</A> 
  <BR><BR><I>ploc is the Filed name</I> <BR><BR><BR>Output file 
  <BR><BR>&lt;HTML&gt; <BR>&lt;body&gt; <BR>&nbsp; &nbsp; &nbsp; &nbsp; <IMG 
  src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR>&lt;/body&gt; 
  <BR>&lt;/HTML&gt; <BR>&lt;HTML&gt; <BR>&lt;body&gt; <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; <IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR>&lt;/body&gt; 
  <BR>&lt;/HTML&gt; <BR>&lt;HTML&gt; <BR>&lt;body&gt; <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; <IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR>&lt;/body&gt; 
  <BR>&lt;/HTML&gt; <BR>&lt;HTML&gt; <BR>&lt;body&gt; <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; <IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR>&lt;/body&gt; 
  <BR>&lt;/HTML&gt; <BR>&lt;HTML&gt; <BR>&lt;body&gt; <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; <IMG src="/ms_tmp/SDS_Sample11376873243408.gif"> <BR>&lt;/body&gt; 
  <BR>&lt;/HTML&gt; <BR>&lt;HTML&gt; <BR>&lt;body&gt; <BR>... <BR>... <BR>... 
  <BR><BR>Thanks &amp; 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>