[mapserver-users] Problem with queryByPoint
Bob.Bistrais at maine.gov
Tue Nov 8 14:19:09 EST 2011
Mapserver 5.6/MS4W 3.2.1-
I am trying to some Php-Mapscript code to do a QueryByPoint on a line
shapefile. For testing, I've created a new point object, and have hard
coded the x,y at a known location.
No matter what I do, the query keeps returning 0 records found. I set a
generous search radius, still no go. Any suggestions?
Not sure if this code sample will be useful, but (data is in EPSG 26919,
$myMap = ms_newMapObj("/ms4w/apps/broadband/maps/broadband.map");
$selectLayer = $myMap->getLayerByName("broadband");
$xCoord = 434802;
$yCoord = 4907306;
$myPoint = ms_newPointObj();
$selectLayer->queryByPoint($myPoint,MS_MULTIPLE,20); //---Returns 0
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users