queryByPoint() php/mapscript help?

Camden Daily cdaily at GMAIL.COM
Fri Apr 15 14:27:31 EDT 2005


Gavin,

The only thing I can immediately notice is that it does not appear
that you are creating your point layer correctly.  You create a point,
create a line, and then add the point to the line.  Then you create a
shape and add it to the layer, but it does not appear that you ever
add the line to the shape.  Try adding this code after you create your
shape and line:
$shape->add($line);

If things still don't work, you might try testing out queryByPoint()
against a point layer defined in a shapefile.  That way, you could at
least determine whether the issue is with how your create the point
layer or how you query it.

-Camden Daily



More information about the mapserver-users mailing list