<div dir="ltr"><span style="color:rgb(11,83,148)">Hi,</span><br><div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-18 17:51 GMT+02:00 Benoît Laurent <span dir="ltr"><<a href="mailto:blaurent@heurisis.eu" target="_blank">blaurent@heurisis.eu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I would like to generate a series of maps representing tracks with stops along them.<br>
<br>
For each track, I have got a group of two layers, one for the linear, one for the points that have associated information (basically name and time of the stops). First, is there a better way to achieve this ? For the moment, I have to handle two types of layer. It is the beginning of my problems.<br>
<br>
As the tracks overlap, I would like to generate a map for each track where only the current selected track appears. The others would be hidden.<br>
<br>
I had a try with Atlas generation. It perfectly works except that I can't hide the other tracks.<br>
 <br></blockquote><div><span style="color:rgb(11,83,148)">You can style your coverage layer so that only atlas current feature will appear. In categorized style, use an expression like $id=$atlasfeatureid. You'll get 0 (false) and 1 (true) when classing. Set the 0 features style so that they become invisible or transparent.</span> <br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I also had a try with a Python script. I managed to iterate over the groups of layers but I can't refresh the map canvas during the Python script. So, it doesn't work.<br>
<br></blockquote><div><span style="color:rgb(11,83,148)">A snippet of your code may help but I remember I had to face such a problem and it was because after *myatlas.beginRender()*, I forgot to set active the export of the atlas, sthg like *mycomposition.setAtlasMode(QgsComposition.ExportAtlas)*</span><br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do others faced a similar problem ? Any help would be appreciated.<br>
<br>
Regards,<br>
<br>
Benoît<br>
<br>
<br>
<br>
---<br>
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.<br>
<a href="http://www.avast.com" target="_blank">http://www.avast.com</a><br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div><br></div></div></div>