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 have two layers - one with country borders, and one with river basin borders - and I need to find a way to generate a list of basins that occur in each country. Is there a way to find overlapping attributes (basins and countries) from two different layers? Ultimately I need to generate a list of river basins for each country that I can copy/export to Excel.

Thanks! Cyrus

share|improve this question
What type is your basin shapefile? Is it a line or a polygon? –  R.K. Nov 8 '12 at 3:41

1 Answer 1

What you want to do is called a Spatial Join.

A common GIS task is to join the attributes from one spatial data layer to another. In this example we will join the attribute table from a polygon layer to a points layer, based on which polygon contains the points.

In QGIS, you can do that by using the JOIN ATTRIBUTES BY LOCATION TOOL.

enter image description here

You can then set your target and join vector layers.

enter image description here

I suggest that you set the river basins as the target vector layer and countries as the join layer. That way, your output would be a basins shapefile with the attributes of the countries shapefile. You could then generate your list from there.

share|improve this answer
+1 Very nice response. –  D.E.Wright Nov 8 '12 at 4:19
Thanks for the upvote :) –  R.K. Nov 27 '12 at 14:13

Your Answer


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.