Have there been any changes that provide this option in serverconfig.ini or
elsewhere? I am interested in forcing server-side upper limits as a backup
to client-supplied parameter "maxFeatures" as passed to the mapagent.fcgi
url. For example, tests indicate that I can keep raising the client-side
parameter until the server finally throws an exception as follows:
An exception occurred in DB component. Db::put: DB_LOG_BUFFER_FULL:
In-memory log buffer is full
Ideally I can force an upper limit regardless of large values passed by the
client URL request.
No server-side limiting mechanism exists at the moment.
This is actually something worth implementing, but I'm not sure if a global
serverconfig.ini value is the place to put it. It's probably actually a web
tier limit (specified in webconfig.ini) that should be applied for mapagent
operations that return features (QUERYMAPFEATURES and SELECTFEATURES). We
don't want to unintentionally limit feature queries from *your own* MapGuide
However it does not appear that the mapagent.fcgi behavior can be adjusted
on either client-side or server side. Removing bounds information would
reduce the JSON overhead anywhere from 10%-50% depending on the requested
layer feature data. Just an additional consideration related to the first
Support for omitting bounds information in QUERYMAPFEATURES:
a) Is an API change
b) Would break our existing client viewers that relied on this information
(eg. Zoom to selected feature) if omitted by default. It would also require
some modification from our viewers to gracefully operate in the absence of
So while this request is also reasonable, such a change can only
realistically land in the next major release.
Thanks again Jackie. Not a major issue but it does offer more control over
To prevent breaking existing client viewers that rely on this information,
the default setting could be left to output the bounds data, with a
server-side variable that disables it if desired. As you said, perhaps this
will make its way into an upcoming release down the line.