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 desperately need to intersect two layers, one of 32 large polygons (towns) the other of many smaller areas with those towns, so that I can classify and make calculations on the smaller areas sorted by town.

I'm using the latest 1.24.3 Lyon version of QGIS (upgraded from V.1.24.1 today). The two layers are here:

http://stubmandrel.co.uk/images/Bits_and_pieces/QGIS_Sample_Files.zip

As you can see I have tried exporting to WGS84 (the project CRS) to ensure that they are overlapping and visible, Topology checker says no errors.

I am opening both latyers, can visually see they overlap, choosing geoprocessing tools>intersect, selecting both files with 'use selection' unchecked, and selecting a suitable filename for the output, but although the new layer is created, its attribute table is empty.

I have a few layers where I can get the clip command to work, but intersect always seems to fail. Previously I have been able to use the geoprocessing tools - using the data attached to do other things.

Can anyone see a fault in my data of workflow?

share|improve this question
    
300m buffer is not in WGS84 it is in EPSG:7405 – iant Jan 21 at 13:36
    
I think this is more than a CRS issue as I cannot intersect them even though I reprojected both layers to the same CRS. – Joseph Jan 21 at 13:50
1  
You are right @Joseph. I even get an error when reprojecting: Export to vector file failed.Error: Feature write errors – wiltomap Jan 21 at 14:06
    
Maybe you need to merge the polygons before you clip them. – Nikos Jan 21 at 14:48

This is a CRS issue. The CRS of layer named 300m_buffer_wgs84 is EPSG:7405, OSGB 1936 / British National Grid. What I suggest you to do is:

  1. Save this layer as another layer (change name) and specify CRS with EPSG:4326 (WGS84) before validating.

  2. Launch QGIS and disable On-the-fly reprojection (Settings > Options > CRS > Don't enable 'on the fly' reprojection). Also check that your project CRS is WGS84.

  3. Load your 2 layers: they should overlap correctly and the geoprocessing tools should also work.

share|improve this answer

There seems to be some serious issues with your data excluding the CRS factor. As you have mentioned, the Clip tool works but Intersect does not.

As a workaround:

  1. Follow the answer provided by @wiltomap to reproject the shapefiles to the same CRS.

  2. Use the Clip tool with the buffer layer as your Input vector tayer and the town layer as your Clip layer

  3. Then use the Join attributes by location tool (Vector > Data Management Tools > Join attributes by location) and use the result from Step 2 as the Target vector layer and the same town layer as the Join vector layer. Also check the Keep all records to ensure the output contains attributes from both selected layers:

    Join attributes by location

The final result should be similar to what you would achieve if you used the Intersect tool (i.e. the clipped features will contain attributes from both layers):

Attribute Table of result

share|improve this answer
1  
Thanks, I don't know how that layer ended up not being WGS84, I must have changed it back again when trying different permutations. I have followed your work-around and it has given me what I want. Now i just have to repeat this for about 15 more datasets! This will benefit the real world, we now know which Black Country Towns are most in need of more accessible greenspace for their residents! – Stub Mandrel Jan 21 at 17:18
    
Good job @StubMandrel! And welcome to GIS StackExchange. – wiltomap Jan 21 at 20:17
    
Thanks took me three goes to ask the question properly! – Stub Mandrel Jan 21 at 20:44

The 300m_buffer_wgs84 file is not WGS84, but EPSG 7405

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

    
I've put a more detailed answer about this issue. – wiltomap Jan 21 at 13:57
    
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review – jbchurchill Jan 21 at 14:16
    
I felt it answered "Can anyone see a fault in my data of workflow?" but you are right. – bugmenot123 Jan 21 at 14:39
    
Indeed, i must have changed it when trying different permutations, but I still get a fail when the CRS matches. – Stub Mandrel Jan 21 at 20:43

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.