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

Antti.Roppola@brs.gov.au Antti.Roppola@brs.gov.au
Fri, 17 Jan 2003 12:17:24 +1100


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);


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users