Problem in MapServer with Oracle Spatial - More than one image is Loaded

Fawcett, David David.Fawcett at PCA.STATE.MN.US
Thu Jan 19 11:18:01 EST 2006


Prema, 
 
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.  
 
David.

	-----Original Message-----
	From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Prema Selvam (sent
by Nabble.com)
	Sent: Thursday, January 19, 2006 10:13 AM
	To: MAPSERVER-USERS at LISTS.UMN.EDU
	Subject: [UMN_MAPSERVER-USERS] Problem in MapServer with Oracle
Spatial - More than one image is Loaded
	
	
	Hi Everybody, 
	
	 Again its Me, 
	
	 I can able to Connect to Oracle Spatial with MapServer and i
can fire the Itemnquery function. 
	
	 But the problem , when i fire the ItemQuery only one record is
hilited thats the default it return only first match record. 
	  When I fire  Itemnquery more than one image is generated that
is if 50 records is matched 50 same image is  loaded. 
	
	 Please give me a some solution  for this problem, below I am
give the Mapfile, Template, Query and Output. 
	
	Mapfile 
	
	        MAP 
	                DEBUG ON 
	                NAME           world_city 
	                EXTENT        -180 -90 180 83.60415649414 
	                SIZE           800 400 
	                SHAPEPATH      '/ms4w/apps/zap/data/' 
	                IMAGETYPE      GIF 
	                STATUS       ON 
	
	                                SYMBOL 
	                                        NAME "circle" 
	                                        TYPE ellipse 
	                                        FILLED true 
	                                        POINTS 
	                                                1 1 
	                                        END 
	                                END 
	
	                WEB 
	                        TEMPLATE     'templates/ZapTemp.html' 
	                        IMAGEPATH    '/ms4w/tmp/ms_tmp/' 
	                        IMAGEURL     '/ms_tmp/' 
	                END 
	
	                PROJECTION 
	                        "proj=latlong" 
	                        "ellps=WGS84" 
	                END 
	
	                QUERYMAP 
	                        STATUS ON 
	                        STYLE HILITE 
	                        COLOR 255 255 0 
	                END 
	
	                LAYER 
	                        DEBUG ON 
	
	                        PROJECTION 
	                                "proj=latlong" 
	                                "ellps=WGS84" 
	                        END 
	
	                        CONNECTIONTYPE oraclespatial 
	                        CONNECTION "world/land at orcl" 
	                        DATA "shape FROM world USING UNIQUE
shapeid SRID 8307" 
	
	                        NAME         world_point 
	                        STATUS       ON 
	                        TYPE         POINT 
	
	
	                        DUMP TRUE 
	
	                        TEMPLATE "templates/ZapTemp.html" 
	
	                        TOLERANCE 5 
	
	                        CLASS 
	                                NAME 'World_Class' 
	                                SYMBOL "circle" 
	                                SIZE 7 
	                                COLOR 128 64 64 
	                                OUTLINECOLOR 0 0 0 
	                        END 
	                END # World polygon layer ends here 
	        END 
	
	
	Template 
	
	<HTML> 
	<body> 
	         
	</body> 
	</HTML> 
	
	
	Query 
	
	
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/zap/htdocs/world1.ma
p&mode=itemnquery&layer=world_point&qlayer=world_point&qitem=ploc&qstrin
g=ploc='pondicherry' 
	
	ploc is the Filed name 
	
	
	Output file 
	
	<HTML> 
	<body> 
	         
	</body> 
	</HTML> 
	<HTML> 
	<body> 
	         
	</body> 
	</HTML> 
	<HTML> 
	<body> 
	         
	</body> 
	</HTML> 
	<HTML> 
	<body> 
	         
	</body> 
	</HTML> 
	<HTML> 
	<body> 
	         
	</body> 
	</HTML> 
	<HTML> 
	<body> 
	... 
	... 
	... 
	
	Thanks & Regards 
	Prema Selvam 
	GISbiz 
	
	
________________________________

	View this message in context: Problem in MapServer with Oracle
Spatial - More than one image is Loaded
<http://www.nabble.com/Problem-in-MapServer-with-Oracle-Spatial---More-t
han-one-image-is-Loaded-t954228.html#a2472128> 
	Sent from the Mapserver - User
<http://www.nabble.com/Mapserver---User-f1215.html>  forum at
Nabble.com. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060119/f19cd292/attachment.html


More information about the mapserver-users mailing list