[mapserver-users] problem on java mapscript queryByPoint
Marco Salvatori
marco.salvatori at witech.it
Wed Jul 22 10:06:31 PDT 2009
Hello,
I'm using java mapscript
I'm confused with queryByPoint function in layerObj class.
I want to query a raster layer (Arc/Info Binary Grid) from specific
coordinates to check if
a point is covered by the layer.
The code is the follow:
pointObj centerPoint = new pointObj(centerX, centerY, 0);
layerObj layer = map.getLayerByName(layerName);
int resQuery = layer.queryByPoint(map, centerPoint,
mapscript.MS_SINGLE, 180.0);
.....
calling queryByPoint with mode mapscript.MS_SINGLE is the same as I call the
function with mapscript.MS_MULTIPLE. My expectation is to have only one
result, but I get many resuts.
I tested the same function using python mapscript and it works correctly.
The question is why this does not work in Java?
Thanks
Marco
--
View this message in context: http://n2.nabble.com/problem-on-java-mapscript-queryByPoint-tp3304559p3304559.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list