<div dir="ltr">This is a long shot but check the extents defined in the map file.<br><br>Rich<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 3:51 PM, Michael McInnis <span dir="ltr"><<a href="mailto:mmcinnis59@msn.com" target="_blank">mmcinnis59@msn.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


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