Feature request #8898

"Save vector layer as" - limit export

Added by Jonathan Moules over 10 years ago. Updated over 10 years ago.

Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:17576


For the "Save vector layer as" function two extra options:

1) Export only what is on the screen.

2) Export only what is selected.

Both of these are really useful.

Associated revisions

Revision 8ac3a94b
Added by Martin Dobias over 10 years ago

Fix #8898 (optional filter extent for vector save as)


#1 Updated by Giovanni Manghi over 10 years ago

  • Category set to Vectors
  • Target version set to Future Release - Nice to have

the second one is available since... long ao.

#2 Updated by Jonathan Moules over 10 years ago

Hmmm, didn't see that (thanks!). Odd that it's a different dialog. Once it's open you have no way of knowing which dialog you're in (save selection or save everything); if you fat-finger the selection you may end up trying to export millions of features instead of just 10's.

I'd suggest having it all on one dialog but as a checkbox/radiobutton/drop-down option.

#3 Updated by Nathan Woodrow over 10 years ago

Having it in one dialog would be nice. Something that I tend to do a lot is also clip all the layers in the map to another layer or feature for export reasons. At the moment you have to use the clip tool on each layer which is fine but a bit of a pain. It would be nice to have this as an option in the save dialog so it's just one simple step.

So would have:

  • All
  • Selected
  • Current View
  • Clip Layer | Layer picker


#4 Updated by Giovanni Manghi over 10 years ago


that would be a very nice improvement indeed.

#5 Updated by Jonathan Moules over 10 years ago


Nice idea. But do you you mean clip clip, or do you mean intersects? I think altering the data (clip) isn't something that should be done in this action (it's a very different thing to just selecting). But selecting intersecting would be fine. Possibly including the option to intersect to the bounding box.


  • All
  • Selected
  • Current View
  • Intersect Layer | Bounding Box

Would be my suggestion.

#6 Updated by Jonathan Moules over 10 years ago

Thinking about it more, it needs to be able to allow multiple possible exports:

Selected / All
Visible / All

And any combination of those (Visible & Selected, All & All, All Visible, All Selected).

A checkbox for "Only Export Selected" would probably work well.

And then some a radio button to select: All, Visible, arbitrary Bounding Box.

#7 Updated by Martin Dobias over 10 years ago

For the extent-based export, there are two options:
1. have just a checkbox ("Export only features visible in map canvas")
2. have more complex widget for selection of extent - visible in map canvas, bounding box of a layer, manually entered - something similar to the "Download OpenStreetMap data" dialog (available in menu Vector > OpenStreetMap)

#8 Updated by Jonathan Moules over 10 years ago

I like the "Extent" functionality on the "Save Raster layer as" dialog. Could that not be used/replicated?

That gets a lot of bonuses:
- Code reuse (theoretically ;-) )
- Vector/Raster dialogs are similar - a step towards a consistent user interface.

#9 Updated by Martin Dobias over 10 years ago

  • Status changed from Open to Closed

#10 Updated by Mathieu Pellerin - nIRV over 10 years ago

Martin, fantastic addition, this should find its way in the 2.4 what's new visual change log.

Also available in: Atom PDF