SWIGMapscript: How to access resultCacheObj after
queryByAttribut es ?
sgillies at FRII.COM
Thu Oct 7 11:51:12 EDT 2004
On Oct 7, 2004, at 9:20 AM, GeoIT wrote:
> Dear experts,
> In Mapserver 4.0 it was possible to get the resultCacheObj after a
> queryByAttribute using layerObj.getResultcache().
> This method is no longer available in 4.2.2.
> How can I get a resultCacheObj in 4.2.2 SWIGMapscript ?
> Kind regards
> Andreas Paukner-Ruzicka
numresults = layer.getNumResults()
for i in range(numresults):
result = layer.getResult(i)
MapServer 4.2.4 is going to be released soon. Has some major
fixes for Java mapscript, and also for querying. It re-exposes
the resultcache so that users can access the spatial bounds of
a set of results
results = layer.resultcache
bounds = results.bounds # a mascript.rectObj
This release will be out within a week and i strongly recommend
that you upgrade when it is available.
sgillies at frii dot com
More information about the mapserver-users