[mapguide-trac] #1533: [WFS] Feature count returned less than values of MaxFeatures

MapGuide Open Source trac_mapguide at osgeo.org
Tue Nov 23 05:02:45 EST 2010


#1533: [WFS] Feature count returned less than values of MaxFeatures
-----------------------------+----------------------------------------------
   Reporter:  liuar          |       Owner:  liuar
       Type:  defect         |      Status:  new  
   Priority:  low            |   Milestone:       
  Component:  WFS Interface  |     Version:  2.2.0
   Severity:  trivial        |    Keywords:       
External_id:  1361400        |  
-----------------------------+----------------------------------------------

Comment(by liuar):

 Two factors could result in this issue:

 1.
 Because the !MgServerFdoFeatureReader in !MapGudie server uses -1 to mark
 empty, while !MgWfsFeatures in !MapGuide web tier uses 0, so there will be
 1 more feature returned from !MapGuide server. So I updated the
 maxFeatures value from numFeaturesToRetrieve to numFeaturesToRetrieve-1

 {{{
 Ptr<MgByteReader> resultReader =
 featureService->GetWfsFeature(featureSourceId, ((sSchemaHash.size()==0) ?
 sClass : sSchemaHash + _(":") + sClass), requiredProperties,
 m_getFeatureParams->GetSrs(), filter, numFeaturesToRetrieve-1, sVersion,
 sOutputFormat, sSortCriteria, sPrefix, oFeatureTypes.GetNamespaceUrl());
 }}}
 [[BR]]

 2.
 Read schema namespaces will cause m_iMaxFeatures-- which will cause the
 last feature lost from the response gml document, so I add
 m_iMaxFeatures's value while reading schema namespaces.

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


More information about the mapguide-trac mailing list