This is a long shot but check the extents defined in the map file.

Rich



On Tue, Sep 17, 2013 at 3:51 PM, Michael McInnis <[email protected]> wrote:

> I'm baffled on this one!
>
> I get a shape object $circle and I have a point layer $bizLayer.
> I know they are both valid as they overlay as expected on my map.
>
> When I call printBusiness to use queryByShape to get the points in the
> shape it always returns 0 for $numResults.
>
> Am I missing a step somewhere?
>
> // Get shape from point and radius
> $circle = createCircle($latlonPoint,$radius);
>
> echo 'Biz Count : ';
> $bizCount = printBusiness($bizLayer,$circle);
> echo $bizCount;
>
> // Draw all the layers per basic1.map
> $image=$map->draw();
>
> // Draw circle - reads shp->draw(map,template,image);
> $circle->draw($map,$emptyLayer,$image);
>
> $image_url=$image->saveWebImage();
>
>
> function printBusiness($featureLayer,$shp){
>
>     $featureLayer->queryByShape($shp);
>     $numResults = $featureLayer->getNumResults();
>
>     if($numResults > 0){
>         echo 'if';
>         return $numResults;
>     }else{
>         echo 'else';
>         return 0;
>     }
> }
>
> _______________________________________________
> mapserver-users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Richard Greenwood
[email protected]
www.greenwoodmap.com
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to