I just installed QGIS 3.0 EA.

I wonder where the Spatial query is?

There is a ”count points in polygon” in the toolbox but it can’t count point within a polygon.


I found the answer myself.

In Processing toolbox> Vector Selection > Select by location. There is the Spatial query.

  • My qgis 3 does not have a processing toolbox tho – Luffydude Oct 9 '18 at 10:50
  • @Luffydude Processing toolbox is a core plugin - make sure it's enabled from the plugin manager window. – csk Oct 22 '18 at 20:19
  • @csk it doesn't allow me to enable or disable from the plugin manager. – Luffydude Oct 24 '18 at 12:47

The Count points in polygon tool should work for you, though I'd be interested to see what output you're getting.

Input polygon and points layers in the count points... tool:

count points tool

Output from above:


If you'd rather perform this via a spatial join, which I think is what you're referring to, note that QGIS 3.0 now offers a separate Join attributes by location (summary) tool in addition to Join attributes by location. Both are found under Vector general in the processing toolbox.

By running a spatial join summary, then clicking the ... by Summaries to calculate parameter, you can specify count:

spatial join summary dialog

Output from above:

spatial join output


In QGIS 3.0, the spatial queries operation can be performed with a tool called Select by Location. The tool can be found under the Vector Selection tool in the Processing Toolbox. See spatial query tutorial how to use Select by location with some examples

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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