[Chameleon] Mapserver GetFeatureInfo example

Godwin, Elizabeth Godwinl at AGR.GC.CA
Thu Mar 17 13:39:55 EST 2005


Hi Derek,
 
Are you looking for an example of a response from Mapserver
getfeatureInfo request? 
 
This just worked for me against our own server:
http://wms1.agr.gc.ca/cgi-bin/mapeco?service=wms&version=1.1.1&request=g
etfeatureinfo&x=150&y=150&query_layers=ecodistricts&layers=ecodistricts&
width=400&height=300&info_format=application/vnd.ogc.gml
 
It's running Mapserver 4.4 beta 2 right now
 
Liz Godwin
 
-----Original Message-----
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Munro, Derek
Sent: March 15, 2005 2:00 PM
To: chameleon at lists.maptools.org
Subject: [Chameleon] Mapserver GetFeatureInfo example



	 
	Hi: 
	 
	I note in the Query widget (QueryResult.phtml)  in the function
processWMSGetFeatureInfo( $szURL )  that the code is testing for either
the cubestore application/x-cubestor-gml.1 XML or Mapserver
application/vnd.ogc.gml XML.
	I was able to find a small example of the cubestore XML that
works properly for me. 

	E.g.

	<?xml version="1.0" encoding="ISO-8859-1" ?> 
	 <!-- 
	 comment
	  --> 
	 <FeatureCollection typename="Query" identifier="0">

	<boundedBy>  

	   <Box srsName="EPSG:4326">
	  <coordinates>-180.0, -90.0, 180.0, 90.0</coordinates> 
	  </Box>
	  </boundedBy>
	 <featureMember>
	 <Feature typeName="MoreInformation" identifier="1">
	  <property typeName="Abstract" type="real">Click below to go to
a page of information</property>

	<property typeName="URL" type="real">&lt;a href=&#34;some url
goes here &lt;/a&gt;</property>  
	  </Feature>
	  </featureMember>
	  </FeatureCollection>

	However I expect that I should be using the MapServer XML/GML as
that is not as proprietary. Does anyone have an example of the Mapserver
XML/GML that would parse properly in QueryResult.phtml to provide the
same type of information?

	

	Thank you,
	 
	Derek Munro
	
	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20050317/8869e617/attachment.html


More information about the Chameleon mailing list