[Chameleon] Mapserver GetFeatureInfo example
Munro, Derek
MUNRODB at AGR.GC.CA
Thu Mar 17 14:01:13 EST 2005
Hi Liz:
Thanks very much for this.
Cheers,
Derek
-----Original Message-----
From: Godwin, Elizabeth
Sent: Thursday, March 17, 2005 1:40 PM
To: Munro, Derek; chameleon at lists.maptools.org
Subject: RE: [Chameleon] Mapserver GetFeatureInfo example
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"><a
href="some url goes here </a></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/0851c7c9/attachment.html
More information about the Chameleon
mailing list