[Mapserver-users] problem QueryByPoint
passera
passera.ext at culture.gouv.fr
Wed Jul 7 02:16:42 PDT 2004
Hello,
I'm a student french and my english is very bad.
My problem are the function QueryByPoint and QueryByRect.
I do not manage to recover information in the .dbf .
My mapfile is:
LAYER
NAME immeuble
TYPE polygon
STATUS ON
DATA IMMEUBLE41
CLASSITEM "SDAP_X"
* * CLASS
COLOR 0 0 0
OUTLINECOLOR 0 0 0
NAME "Immeuble"
SYMBOL 0
TEMPLATE "query.html"
END
END
My .php is:
$layer = $map->getlayerbyname("immeuble");
$point =
pixeltogeo($map,$HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]);
$queryfound = $map->querybypoint($point,MS_SINGLE,-1);
if ($queryfound == MS_SUCESS){
$count_results = $layer->getnumresults();
print($count_results);
}
if ($queryfound == MS_FAILURE){
print("failure");
}
// $queryfound is every time equal MS_FAILURE
Please help
More information about the MapServer-users
mailing list