I have a large WFS polygon layer and I want to use query builder to clip it before importing to desktop app. To do this, I have created predefined polygon ( QGIS layer named: clip_boundary ) which I want to use a boundary to clip data.

Query builder SQl statement:

SELECT * FROM wfs_table WHERE ST_Contains( wkb_geometry,clip_boundary.geometry)

Where wfs_table is table I want to clip. I get following error:

enter image description here

1 Answer 1


It is not possible to reference a layer from your local project in the SQL Query Composer. You can only make queries to the WFS.

If it is always the same polygon you can write something like this:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.