[Mapserver-users] How can i show, open, dump the resultcache?
Yewondwossen Assefa
assefa at dmsolutions.ca
Wed May 28 10:21:58 PDT 2003
You shoud use $numResults = $oLayer->getNumResults(); to get the number
of results and then loop through using somethink like
for ($iRes=0; $iRes < $numResults; $iRes++)
{
$oRes = $oLayer->getResult($iRes);
...
}
Michael Härtel wrote:
> Hi All!
>
> I use follwing code:
>
> $query=$querylayer->QueryByPoint($my_point_geo,MS_MULTIPLE,0);
> $resultcache = $querylayer->resultcache;
> $numresult=$querylayer->numresults;
> $result = $querylayer->getresult(0);
>
> i don't understand why if i use var_dump(variable):
>
> $resultcache is NULL
> $numresult is NULL
> but $result for example is:
> object(stdClass)(3) { ["shapeindex"]=> int(7658) ["tileindex"]=>
> int(-1) ["classindex"]=> int(0) }
>
> Obviously the query returns any results but how can i see what results
> if the resultcache is NULL? How can i count the results without having
> a resultcache?
>
> Thanks for any reply.
>
> Michael
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list