2

Apologies, im very new to QGIS and theres a chance what im asking isnt actually what i require, let me explain

Im working with a project with multiple layers, I have a layer (lets call it layer 1) with multiple polygons outlining site boundaries, what i would like to know is if it is possible for QGIS to generate a list of all the layers that a specific polygon in layer 1 intersects with?

i know how to use a spatial query but all this does is highlight a load of polygons that intersect with a particular layer

  • Is it just one polygon you want? Or do you want to work out the intersections for all of the polygons on layer 1? Do you want these intersections added as attributes to layer 1 or a derivative or do you actually just want a non-geometry table? – George of all trades Jan 24 '17 at 8:51
2

One way to solve this task is to merge all layers (using saga merge) you want to intersect 1 layer with and then make normal Spatial query.

Saga Merge is inside Processing -> Toolbox -> Saga -> Merge vector layers. Just add source layer information after merge.

Saga merge

  • Ah okay, so then use the usual spatial query with the layer and the merged ones? – revo Jan 24 '17 at 8:52
  • yep :) inside your merge layer you will have new column with all names of your polygons. After spatial query you will have selected names :) – Losbaltica Jan 24 '17 at 8:58
  • Don't suppose there's a way to access the source information in a spatialite query? It would help with another question I've asked gis.stackexchange.com/q/225232/64402 and give scope for using a virtual layer as a solution – George of all trades Jan 24 '17 at 8:58
  • Your welcome ;) Is always nice to share knowledge :) – Losbaltica Jan 24 '17 at 9:04
  • I've just tried Processing -> Toolbox -> Saga -> Merge vector layers and the source attribute in the result are just numbers such as 1485254891.233. Any ideas? – George of all trades Jan 24 '17 at 11:38
0

First thought is to select the specific polygon, convert that to a new layer, then use that new layer for the spatial query

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.