The answers to these two questions are related. I'll answer the 2nd (easier) one first. You can test for at least a point in common using the Intersects
test so a CQL filter like:
intersects(POLYGON((.....)), the_geom)
This will return all the features that intersect the geometry stored in the the_geom
attribute.
To limit it to a specific feature you can extend the filter to request a specific feature such as:
in (1) and intersects(POLYGON((.....)), the_geom)
to return a feature if it's id
is 1 and it intersects.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…