<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">The best tool I know for scripted cartography is GMT (Generic Mapping Tools). ogr2ogr will execute database queries & output GMT compatible datasets.<br><br>For things like "for species in list, draw map" it is very powerful & effective. But doesn't help with how QGIS can do this I'm afraid.<br><br>Brent Wood<br><br>--- On <b>Tue, 9/18/12, Pedro Camargo <i><veigacamargo@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Pedro Camargo <veigacamargo@gmail.com><br>Subject: [Qgis-user] Automatizing map making<br>To: qgis-user@lists.osgeo.org, qgis-developer@lists.osgeo.org<br>Date: Tuesday, September 18, 2012, 11:07 AM<br><br><div id="yiv757802553"><div>Hi,</div><div>     I have been using QGIS for a few months now after almost a decade
 using Maptitude and TransCAD (from Caliper Corporation).  </div><div> </div><div>     Now that I already know how to get around pretty well with QGIS, I want to use it to production of series of maps (from a few dozens to hundreds at a time).</div>

<div> </div><div>     My current problem is to make simple maps with graduated style and fixed classes for several different fields on the database.</div><div> </div><div>   Looking at the PyQGIS documentation helped a bit, but I got several errors like "NameError: name 'QtGui' is not defined" and for many other names/libraries in the sample code I used, so I'm pretty sure that I have something missing that was not mentioned in the documentation or that I missed.</div>

<div> </div><div>   Further, I'm interested in making maps with fields that are not in the database, so I need to make a join too (which is not mentioned anywhere in the documentation I saw).</div><div> </div><div>    I would imagine that there is a way to open a project, change something (like the fields for the graduate rendenring), update the map composer and save the jpg, but I didn;t see anything like that...</div>

<div> </div><div>    Did anybody face a situation like this? Any recomendations?  Any sample code you could share?</div><div> </div><div>Thanks for the help,</div><div> </div><div>Pedro</div><div>UC Irvine</div><div> </div>

<div> </div><div> </div><div> </div><div>PS - Sorry for posting in two lists, but I really have no idea where to send this e-mail.</div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Qgis-user mailing list<br><a ymailto="mailto:Qgis-user@lists.osgeo.org" href="/mc/compose?to=Qgis-user@lists.osgeo.org">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><br></div></blockquote></td></tr></table>