public static Filter getIntersectsGeometryFilter( String geomName, Geometry geometry ) throws CQLException {
        Filter result = CQL.toFilter("INTERSECTS(" + geomName + ", " + geometry.toText() + " )");
        return result;
    }
public static Filter getIntersectsGeometryFilter ( String geomName , Geometry geometry ) throws CQLException { Filter result = CQL . toFilter ( "INTERSECTS(" + geomName + ", " + geometry . toText ( ) + " )" ) ; return result ; }
Creates an intersect filter.

@param geomName the name of the geom field to filter.
@param geometry the geometry to use as filtering geom.
@return the filter.
@throws CQLException