[mapserver-users] itemquery and validation

Leehan mathias.cunault at inrap.fr
Mon May 26 01:54:13 PDT 2014


of course and thx.

here s the url : 
http://localhost/cgi-bin/mapserv.exe?map=C%3A%5COSGeo4W%5Capache%5Chtdocs%5Cpostgis.map&imgext=459919.257821+6611950.676783+660865.099955+6762581.441074&imgxy=320+240&layer=communes&layer=emprise&layer=+&mode=browse&submit=Refresh&zoom=1&map_emprise_tolerance=%5Bemprise_tolerance%5D&qlayer=%5Bqlayer%5D&qitem=%5Bqitem%5D&qstring=%5Bqstring%5D

here s the part of the mapfile :
 LAYER
	NAME emprise
	STATUS on
	TYPE POLYGON
	CONNECTIONTYPE POSTGIS
	CONNECTION "host=10.3.1.51 dbname=xxx user=xxx
            password=xxx port=5432"
	DATA "geom from activite.emprise using unique gid using srid = 2154"
	TOLERANCE 1 #tampon autour du clic souris
	TOLERANCEUNITS kilometers
	VALIDATION 
		"numope" "^[A-Z]{1}[0-9]{6}$"
		END #end validation 
	CLASSITEM "tpeope" 

and here s part of template :
<div align="center">Map Mode:<br>
		<select name="mode">
		  <option value="browse" [browse_select]>Naviguer</option>
		  <option value="query" [query_select]>Requete une couche, une
réponse</option>
		  <option value="nquery" [nquery_select]>Requete une couche, n
réponses</option>
		  <option value="itemquery" [itemquery_select]>Requete
attributaire</option>
		</select>
	      </div>
...
                 tr>
				
		  couche requetée (qlayer) :
			
				
		  <input type ="text" name="qlayer" size="10" value=[qlayer]>
			
		
                  

				
		  (qitem) :
			
				
		  <input type ="text" name="qitem" size="10" value=[qitem]>
			
		
		

				
		   (qstring) :
			
				
		  <input type ="text" name="qstring" size="10" value=[qstring]>
			
		

Finally, i have no hidden mapserver variables defined (like for example :
<input type="hidden" name="map" value="[map]">) concerning queryitem.

Does it help ?



Eichner, Andreas - SID-NLKM wrote
> Can you post the URL of your request and at least the relevant MAP file
> part? Enabling the debug options is probably a good idea.
> 
>> I  did set mode = itemquery like i did for query and nquery.
>> These 2 work fine.
> _______________________________________________
> mapserver-users mailing list

> mapserver-users at .osgeo

> http://lists.osgeo.org/mailman/listinfo/mapserver-users





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-post-to-be-accepted-tp5142386p5142486.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list