[Mapserver-users] queryByShape works on layers but not map.

Antti.Roppola at brs.gov.au Antti.Roppola at brs.gov.au
Thu Jan 16 17:17:24 PST 2003


Hello all,

I am writing some queries using PHP/Mapscript 3.6.3 and am having
problems getting queryByShape to work against a map object. When
I try and call queryByShape against a map, it seems to hang the
script at that point. Other queries against the map are fine, as
are queryByShape calls against a single layer.

Thoughts?

Antti

        // The following queryByShape works...
        $myLayer = $map->getLayerByName("Marinas");
        $myLayer->queryByShape($regionShape);

        // The following queryByShape doesn't work...
        $map->queryByShape($regionShape);

        // but using the shape's bounding box does work
        $map->queryByRect($regionShape->bounds);

        $regionShape->free();

        QueryResults($map);





More information about the MapServer-users mailing list