[Qgis-user] Automated printing looping through features?
Junior Delaz
delazj at gmail.com
Tue Jan 6 03:01:08 PST 2015
Hi,
2015-01-06 11:32 GMT+01:00 Vincent Picavet <vincent.ml at oslandia.com>:
> Hello Morten,
>
> Here is the process.
>
> * Create a coverage layer (named "cov" here), with all the same polygons
> (could be different if you want specific areas for specific values), and a
> field
> named "xvalue", which values go from 1 to 999. You can create this layer
> easily with PostGIS and generate_series for example
>
I think this part can also be done using the **Dissolve** function in
Processing toolbox or DissolveWithStats plugin (experimental though)
> * For the layer you want to display or not given the value of its "x"
> attribute, do the following :
> ** set the style to rule-based
> ** create a new rule
> ** set the label to "display" (e.g.) and the filter to :
> "x" = attribute($atlasfeature, 'xvalue')
>
> * create a composer with a map displaying the layer
> * in the atlas tab, set coverage layer to "cov", and check "hidden"
> * you can preview and export the atlas, having your result
>
> You can have much more complex rules and change the polygon which define
> the
> extent for each map you want to have.
>
> Enjoy :-)
>
> Vincent
>
> Le mardi 6 janvier 2015 11:04:05, magerlin a écrit :
> > Anybody got an idea on how to automate this process in Qgis:
> >
> > I want to print separate maps for each different value of an attribute
> > like: * One map showing all features with attribute value x=1
> > * One map showing all features with attribute value x=2
> > ....
> > * One map showing all features with attribute value x=999
> >
> > It sounds like a straightforward task but I have not found any automated
> > solution - I can of course do it manually but it ends up being quite
> > boring!
> >
> > It is a bit like making an atlas and I have considered using my layer as
> > atlas coverage layer but since features with x=1 and x=2 might be at the
> > same location I need to only see the actual features with x=1 and not
> > features with x=2 at the same time. And I need to see ALL features with
> x=1
> > at the same map, not on separate maps.
> >
> > I have been wondering of using the "Filter with" functionality in some
> way
> > but have not found a solution.
> >
> >
> >
> >
> >
> > -----
> > Regards Morten
> >
> > Currently using Qgis 2.6.0 (OSGeo4),
> > Windows 7, 64bit
> > --
> > View this message in context:
> >
> http://osgeo-org.1560.x6.nabble.com/Automated-printing-looping-through-fea
> > tures-tp5180161.html Sent from the Quantum GIS - User mailing list
> archive
> > at Nabble.com. _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150106/0d7a8916/attachment.html>
More information about the Qgis-user
mailing list