Bug report #14497

Atlas and Virtual Layers

Added by Klas Karlsson about 8 years ago. Updated almost 8 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:2.14.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:No Copied to github as #:22472

Description

I cant get the Atlas to work with virtual layers.

My procedure may be at fault...

1. Vector polygon layer (SHAPE) with "Provider feature filter" on an attribute to get only 'city'
2. Virtual Layer to get only "large" polygons.
select * from layername where st_area(geometry) > 10000000;
3. Use virtual layer as source for Atlas.

Variables like @atlas_pagename works fine as do the drop-down list to select pages, but the map will not update.
If I save the virtual layer as a new shape file and use that in the Atlas, it also works fine!

I've even tried creating a very simple shape file and use select * from layername and it will not work.

History

#1 Updated by Giovanni Manghi almost 8 years ago

  • Operating System deleted (linux and windows)
  • Priority changed from Low to Normal
  • Status changed from Open to Feedback
  • Category set to Map Composer/Printing

Please attach a sample project together with the necessary data.

#2 Updated by Giovanni Manghi almost 8 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

closing for lack of feedback, please reopen if necessary.

Also available in: Atom PDF