[mapserver-users] Problem with queryByPoint
Bistrais, Bob
Bob.Bistrais at maine.gov
Tue Nov 8 11:19:09 PST 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,
UTM meters):
$myMap = ms_newMapObj("/ms4w/apps/broadband/maps/broadband.map");
$selectLayer = $myMap->getLayerByName("broadband");
$xCoord = 434802;
$yCoord = 4907306;
$myPoint = ms_newPointObj();
$myPoint->setXY($xCoord,$yCoord);
$selectLayer->queryByPoint($myPoint,MS_MULTIPLE,20); //---Returns 0
results
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111108/188619c4/attachment.htm>
More information about the MapServer-users
mailing list