Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am working with two polygon layers which overlap but are unrelated (one is congressional district boundaries, the other is MPO area boundaries).

I would like to generate a list of all the polygons in one layer which overlap with each polygon in the second layer. I.e. I want to generate a list of all the Congressional districts which are at least partially within each MPO area.

Which vector tools or plugins can I use to get there?

I'm using QGIS 1.8 on OSX 10.6.

share|improve this question
add comment

2 Answers

You can use the intersect tool in the Vector menu under Geoprocessing Tools. You select the two layers you are interested and an output location. This will create a new shapefile with the attributes of the overlapping features. In the attributes you should then have the MPO and Congressional District numbers.

share|improve this answer
add comment

I would use spatial database (Spatialite for example) and SQL-querry for it. I suppose you know that QGIS is able to work with databases and run queries. Also there is a Spatialite-GUI that allow to add virtual shp-files to the database so you don't actually need to import your data into the database. Now if you need to get "ID" field from layer1 for objects that intersects with objects from layer2 use simple querry (assume that Geometry is the field where geometry is stored):

SELECT ID
FROM layer1 
WHERE  (SELECT ST_Intersects(layer1.Geometry, layer2.Geometry)) 

Notice that no additional (unwanted) layers will be created here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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