Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 using QGIS?

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

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

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.