<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"> Or look at using GMT (Generic Mapping Tools) to render your maps.<br><br>Pretty easy to script up something like:<br><br>for dataset in table ; do<br>  get data (ogr2ogr)<br>  render map<br>done <br><br>GMT is perhaps the most powerful Open Source cartographic tool available, but does not integrate particularly well with other GIS tools. However some recent enhancements to allow it to render images with world files & support from ogr for GMT formatted vector data mean it is now a very useful addition to a mainstream GIS toolkit.<br><br>Publication/poster quality cartography is not an area I'd really look for web oriented GIS tools to do well. It is a very different arena.<br><br>See http://gmt.soest.hawaii.edu<br><br>If you want help or examples, feel free to ask me off list. I have covered this topic for some in-house workshops on both GMT
 & Postgis. <br><br>Cheers<br><br>Brent Wood<br><br>--- On <b>Sat, 9/25/10, Robert Coup <i><robert.coup@koordinates.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Robert Coup <robert.coup@koordinates.com><br>Subject: Re: [postgis-users] Programmatically generate maps zoomed to extent of shapes?<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Saturday, September 25, 2010, 9:18 AM<br><br><div id="yiv863688600"><br><br><div class="yiv863688600gmail_quote">On Sat, Sep 25, 2010 at 3:50 AM, Martin Davis <span dir="ltr"><<a rel="nofollow" ymailto="mailto:mbdavis@refractions.net" target="_blank" href="/mc/compose?to=mbdavis@refractions.net">mbdavis@refractions.net</a>></span> wrote:<br><blockquote class="yiv863688600gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left:
 1ex;">
 Try looking at Mapnik.  This is what OpenStreetMap uses to generate its tiles.  I believe it exposes an API (or at least a cmd-line interface)</blockquote><div><br></div><div>Yep, it certainly does. There's a command line tool that renders an XML map declaration to a map (nik2img), and there's the main mapnik APIs (C++/Python)</div>
<div> </div><div>There's also some projects that start with OSM data and produce printed maps. eg. with street-name indexes, mostly using mapnik for the map-rendering part.</div><div><br></div><div><a rel="nofollow" target="_blank" href="http://wiki.openstreetmap.org/wiki/OSM_on_Paper">http://wiki.openstreetmap.org/wiki/OSM_on_Paper</a></div>
<div>specifically walkingpapers, maposmatic, and townguide.</div><div><br></div><div>It probably wouldn't be too hard to hack on them to use your postgis data instead of OSM data.</div><div><br></div><div>The mapnik mailing lists are pretty friendly & helpful too.</div>
<div><br></div><div>HTH,</div><div><br></div><div>Rob :)</div></div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>