1

I have two shapefiles that partially overlap. One (the bigger one) consists of several polygons which represent fields I am interested in. The second, is a rectangular shape that overlaps about 30% of my first shapefile and hold information about soil texture. I want to clip my first shapefile to the extends of the second and then find out the soil texture for each of the polygons of the first shape. I tried the merge function and the intersect function in Qgis so far. The merge seemed to be a shapefile consisting only of information of the soil texture but I could not find my fields in it. The intersection gave me an empty shapefile. Can someone point me in the right direction by providing some procedure names (preferably in R) two achieve what I need. I think I am searching with the wrong keywords here but as a newbie that is what happens;)

2

I think you are looking for the Intersection tool available in QGIS.

In the following picture each feature of the blue polygon has a soil attribute and while the red polygon is the polygon of your clip.

enter image description here

Using the Intersection tool in QGIS (Vector -> Geoprocessing -> Intersection) or in Processing (open the Processing toolbox and type Intersection) the green layer is the resulting one:

enter image description here

Notice that the attribute table of the green layer is made up by each matching field of the intersection layers.

enter image description here

Hope this helps!

  • Thank you this works perfectly. Is there a way to clip one shapefile first so that only the ones that are fully within the second one are used for intersecting? – user2386786 Mar 25 '15 at 13:10
  • You can try to explore the Processing toolbox and create a model.. – matteo Mar 25 '15 at 13:42

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.