I have two vector layers in GeoServer.
By cross-layer filtering, I want to select
only those polygons from
1st layer which are crossed by any
specifically chosen polyline from
INCLUDE;WITHIN(geometry, collectGeometries(queryCollection('railway_shapefile', 'geometry', 'FROM=''DELHI'' AND TO=''AMBALA''')))
TO are the attributes from polyline shapefile
Basically, what is want is that
if a select a single line running between two stations, then
only the polygons from/through which line is crossing should be
selected/filtered/highlighted. The rest should be
masked/not selected/not highlighted.
and The layer does not open if I delete
INCLUDE from the CQL_FILTER
CQL_FILTER=WITHIN(geometry, collectGeometries(queryCollection('railway_shapefile', 'geometry', 'FROM=''DELHI'' AND TO=''AMBALA''')))
What would be the correct syntax for this?