I'm hoping someone can help me work out whether there's something I'm missing here or whether QGIS's Select Features tools are just really buggy.

I have a variety of polygon layers from shapefiles based on Australian geostatistical units. I've clipped these layers according to larger city-based polygons in order to create metropolitan cohorts. Now, I'm trying to copy and paste these cohort polygons into their own layers. So, I select the cohorts with a rectangular selection, then copy and paste into new layers.

Except it usually doesn't work. This isn't a case of the colours being similar; the copy option isn't available after I try to make a selection. And when it occasionally works, I can't work out what I've done to make it happen: sometimes I switch to another tool and back (eg. identify a feature, then switch back to the selection tools) and it works, sometimes it doesn't. Sometimes I switch to another application like my browser, and when I try again when I return it works fine. There doesn't seem to be any consistency to the behavior. I literally just made a successful selection, deselected, turned another layer on and back off, tried again and nothing happened.

Is there some sort of layer lock I'm not seeing that prevents interaction? Is it just a buggy tool? What am I missing? I'm using QGIS 2.12.1-Lyon of OS X.

EDIT: my workaround is to select features via the attribute table, which appears to work consistently. It's not ideal, though.

EDIT #2: nope, never mind—the attribute table doesn't work either. It highlights the features associated with the rows I select consistently, but Edit > Copy isn't enabled most of the time. Because they were highlighted and I was using the keyboard shortcut, I didn't realise this until I had a dozen incorrect layers pasted.

  • 1
    If you right click on the layer and choose Save As.. and "Only selected features" does that work? Sounds like a data issue. – HeikkiVesanto Feb 25 '16 at 14:22
  • Selecting via the attribute table and then using Save As with Only selected features seems to work fine! I can't get my head around why one method works consistently and the other two don't. – rensa Feb 25 '16 at 14:30
  • Are both layers in Edit mode before you copy/paste? – Joseph Feb 25 '16 at 14:31
  • 1
    @Vesanto - True that only the layer being pasted on has to be edited. I toggle the editing for both due to bad habit =) – Joseph Feb 25 '16 at 14:36
  • 1
    Ahhh, that's it, @Vesanto. If I don't select the layer in the Layers menu, I can see a marquee selection highlight rows in the open attribute table, but the features themselves don't get selected. Select the layer in the menu and everything works perfectly. Clearly I need more coffee. Thanks for your help, both of you! (if you'd like to add that as an answer, Vesanto, I'd be happy to accept it) – rensa Feb 25 '16 at 14:38

Unlike some other GIS programs, QGIS is heavily reliant on the layers panel to control inputs.

So to select from a layer you first need to highlight it in the layers panel. This makes the layer active and thus selectable.

This is also the same for copying features. Especially if you are selecting from the attribute table, you may still have a different layer active that it is trying to copy from.

So a methodological approach is best:

  1. Select the layer from the layers panel.
  2. Using the select tool select the features you want to copy.
  3. Choose Paste features as a new layer from the Edit menu.

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.