[mapguide-trac] #225: WMS GetFeatureInfo Returns Data From Only One Layer

MapGuide Open Source trac_mapguide at osgeo.org
Mon Jul 9 17:27:21 EDT 2007


#225: WMS GetFeatureInfo Returns Data From Only One Layer
---------------------------+------------------------------------------------
 Reporter:  jdcard         |         Owner:  chrisclaydon
     Type:  defect         |        Status:  new         
 Priority:  medium         |     Milestone:  1.2         
Component:  WMS Interface  |       Version:  1.2.0       
 Severity:  major          |    Resolution:              
 Keywords:                 |   External_id:              
---------------------------+------------------------------------------------
Comment (by chrisclaydon):

 By default, the WMS !GetFeatureInfo request only returns information for a
 single feature. This is compliant with the OGC WMS 1.1.1 specification.
 The maximum number of features returned can be controlled by specifying
 the FEATURE_COUNT parameter.

 The following request against the Sheboygan sample data (modified to
 ensure that the layers are set to be queryable) returns information for
 two features:

 http://localhost:8700/mapguide2008/mapagent/mapagent.fcgi?REQUEST=GETFEATUREINFO&SERVICE=WMS&VERSION=1.1.1&FORMAT=image/png&INFO_FORMAT=text/xml&LAYERS=Samples/Sheboygan/Layers/Buildings,Samples/Sheboygan/Layers/Parcels&X=300&Y=300&BBOX=-87.727526,43.744432,-87.727157,43.744819&SRS=EPSG:4326&WIDTH=600&HEIGHT=600&FEATURE_COUNT=100

 The response was as follows:
 {{{
  <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 &amp; 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>
   <FeatureInfo>
   <Property name="Autogenerated_SDF_ID" value="22106"></Property>
   <Property name="URL" value=""></Property>
   <Property name="NAME" value=""></Property>
   <Property name="ID" value="8231"></Property>
   </FeatureInfo>
  </FeatureInfoCollection>
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/225#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list