I'm using ms4w (MapServer version 4.10.0) with phpMapscript on postGIS-Data.
I try to use a selection on a featurtheme (polygon), optionally buffer the resultshapes and use the shapes for a spatial query on another featuretheme (points e.g. query all supermarkets within a selected municipality).
Problem is, that queryByShape (or whichShapes() + nextShape() as alternative) gives no results, allthough there *are* some points within that polygon.
"Warning: [MapServer Error]: msQueryByShape(): No matching record(s) found..."
"Manufacturing" a rectangular $query_shape with
$query_shape = ms_shapeObjFromWkt("POLYGON((2511877 5622343,2511877 5629144,2518548 5629144,2518548 5622343,2511877 5622343))");
has the same problems...