[mapguide-trac] #225: WMS GetFeatureInfo Returns Data From Only One
Layer
MapGuide Open Source
trac_mapguide at osgeo.org
Fri Jul 6 19:43:06 EDT 2007
#225: WMS GetFeatureInfo Returns Data From Only One Layer
-----------------------------+----------------------------------------------
Reporter: jdcard | Owner:
Type: defect | Status: new
Priority: medium | Milestone: 1.2
Component: WMS Interface | Version: 1.2.0
Severity: major | Keywords:
External_id: |
-----------------------------+----------------------------------------------
WMS GetFeatureInfo should return data for all visible layers included in
the request. It is only returning data for one layer.
Environment: MapGuide OS 1.2.0 RC2 on Windows 2000 Server; Sheboyban data
set.
Open the Buildings layer in Studio and enable the URL, NAME, and ID
columns in the "Properties displayed in Viewer" section.
Load the http://SERVER/mapguide/mapagent/getfeatureinfowmsform.html form
and change the following fields:
{{{
Map Layers (comma-separated) :
Samples/Sheboygan/Layers/Parcels,Samples/Sheboygan/Layers/Buildings
Query Layers (comma-separated) :
Samples/Sheboygan/Layers/Parcels,Samples/Sheboygan/Layers/Buildings
Query Point X (pixels from left) : 300
Query Point Y (pixels from top) : 300
Bounding Box (minx,miny,maxx,maxy):
-87.727526,43.744432,-87.727157,43.744819
Display Width (pixels) : 600
Display Height (pixels) : 600
}}}
Submit the form. You will receive a text/xml document similar to this:
{{{
<FeatureInfoCollection>
<FeatureInfo>
<Property name="URL" value=""></Property>
<Property name="NAME" value=""></Property>
<Property name="ID" value="8231"></Property>
</FeatureInfo>
</FeatureInfoCollection>
}}}
Next, reverse the order of the layers in the MapLayers and QueryLayers
fields of the form. Submit the form and you receive something like this:
{{{
<FeatureInfoCollection>
<FeatureInfo>
<Property name="Description1" value="ORIGINAL PLAT"></Property>
<Property name="Zone" value="EXM"></Property>
<Property name="Acreage" value="0.62"></Property>
<Property name="Lot Dimensions" value="150X180"></Property>
<Property name="Owner" value="IMMANUEL EVANGELICAL"></Property>
<Property name="Description2" value="LOTS 7,8 & 9 BLK
224"></Property>
<Property name="Description3" value=""></Property>
<Property name="Billing Address" value="1634 ILLINOIS AVE"></Property>
<Property name="Lot Size (SqFt)" value="27000"></Property>
<Property name="Description4" value=""></Property>
</FeatureInfo>
</FeatureInfoCollection>
}}}
Both queries should have returned data for both layers, something like
this:
{{{
<FeatureInfoCollection>
<FeatureInfo Layer="Buildings">
<Property name="URL" value=""></Property>
<Property name="NAME" value=""></Property>
<Property name="ID" value="8231"></Property>
</FeatureInfo>
<FeatureInfo Layer="Parcels">
<Property name="Description1" value="ORIGINAL PLAT"></Property>
<Property name="Zone" value="EXM"></Property>
<Property name="Acreage" value="0.62"></Property>
<Property name="Lot Dimensions" value="150X180"></Property>
<Property name="Owner" value="IMMANUEL EVANGELICAL"></Property>
<Property name="Description2" value="LOTS 7,8 & 9 BLK
224"></Property>
<Property name="Description3" value=""></Property>
<Property name="Billing Address" value="1634 ILLINOIS AVE"></Property>
<Property name="Lot Size (SqFt)" value="27000"></Property>
<Property name="Description4" value=""></Property>
</FeatureInfo>
</FeatureInfoCollection>
}}}
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/225>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list