How to use queryByShape

Nico Alberti nico at LANGHIRANO.IT
Wed Jun 20 07:35:08 PDT 2007


Hi everybody. I am quite new to php_mapscript, so excuse me if the
question is lame.

I am trying to select which points of a shape are inside a particular
area, (a  shape from a polygon shapefile), so I do something like
this, after having instantiated the objects:

$map->prepareQuery();
$ret=$layerPoints->queryByShape($ShapeAreaObject);

However, even if I am sure that some points fall within the area of
$ShapeAreaObject, nothing is selected. It seems I am missing
something, but after having read the documentation and the list, I did
not find any clue. Using the php_ogr extension, the points that fall
within the area (or better its envelope) are correctly selected, but,
again, it is certainly my fault, as it's the first time I use this
library.

Any help will be greatly appreciated, thank you in afvance
-- 
Ciao
Nico



More information about the MapServer-users mailing list