[Mapserver-users] resultcache using QueryByPoint (NULL? or empty?)
Michael Härtel
mhaerte1 at gwdg.de
Mon May 26 02:09:37 PDT 2003
Hello all!
I'm sorry but i dont run out of problems ;):
i use following code:
$query=$querylayer->QueryByPoint($my_point_geo,MS_MULTIPLE,0);
$resultcache = $querylayer->resultcache;
($resultcache = $query->resultcache also produces NULL)
$numresult=$querylayer->getnumresult;
($numresult=$query->getnumresult also produces NULL)
$result = $querylayer->getresult(0);
after this this shows up with var_dump:
$query =1
$resultcache=NULL
$numresult=NULL
example for $result=object(stdClass)(3) { ["shapeindex"]=> int(11854)
["tileindex"]=> int(-1) ["classindex"]=> int(0) } !!! success !!!
So i have a result (which makes my very happy and is a big step forward
;) ) but i don´t know my resultcache always is empty.
I want to count the returned objects of course to program a loop for the
output but i dont know what to count actually if my cache is empty. Do i
have to make some changes to my configuration or are there some errors
in my code?
Once again my target-layer (shouldn't there be an entry for
["resultcache"] like it is shown for labelcache?
querylayer: object(layer)(35) { ["_handle_"]=> resource(51) of type
(layerObj) ["_map_handle_"]=> resource(1) of type (mapObj)
["numclasses"]=> int(1) ["index"]=> int(7) ["status"]=> int(1)
["classitem"]=> string(0) "" ["name"]=> string(11) "WRS-2_frame"
["group"]=> string(0) "" ["data"]=> string(9) "wrs2/wrs2" ["type"]=>
int(2) ["tolerance"]=> float(5) ["toleranceunits"]=> int(4)
["symbolscale"]=> float(-1) ["minscale"]=> float(-1) ["maxscale"]=>
float(-1) ["labelminscale"]=> float(-1) ["labelmaxscale"]=> float(-1)
["maxfeatures"]=> int(-1) ["transform"]=> int(1) ["labelcache"]=> int(1)
["postlabelcache"]=> int(0) ["labelitem"]=> string(0) ""
["labelsizeitem"]=> string(0) "" ["labelangleitem"]=> string(0) ""
["tileitem"]=> string(8) "location" ["tileindex"]=> string(0) ""
["header"]=> string(32) "H:\_webroot_\mapserv_header.html" ["footer"]=>
string(32) "H:\_webroot_\mapserv_footer.html" ["connection"]=> string(0)
"" ["connectiontype"]=> int(1) ["filteritem"]=> string(0) ""
["template"]=> string(40) "H:\_webroot_\mapserv_query_template.html"
["transparency"]=> int(0) ["styleitem"]=> string(0) "" ["offsite"]=>
object(color)(4) { ["_handle_"]=> resource(52) of type (Unknown)
["red"]=> int(-1) ["green"]=> int(-1) ["blue"]=> int(-1) } }
Thanks again for your help.
regards,
Michael
--
Michael Härtel
Georg-August University Goettingen
Department of Geography
Cartography, GIS & Remote Sensing Section
project Notebook University, Internet Map Service
Goldschmidtstr. 5 Tel.: +49 (0)551/39-12671
37077 Göttingen Fax : +49 (0)551/39-8020
http://www.geogr.uni-goettingen.de/kuf/
More information about the MapServer-users
mailing list