[postgis-users] Programmatically generate maps zoomed to extent of shapes?
pcreso at pcreso.com
pcreso at pcreso.com
Fri Sep 24 14:35:41 PDT 2010
Or look at using GMT (Generic Mapping Tools) to render your maps.
Pretty easy to script up something like:
for dataset in table ; do
get data (ogr2ogr)
render map
done
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.
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.
See http://gmt.soest.hawaii.edu
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.
Cheers
Brent Wood
--- On Sat, 9/25/10, Robert Coup <robert.coup at koordinates.com> wrote:
From: Robert Coup <robert.coup at koordinates.com>
Subject: Re: [postgis-users] Programmatically generate maps zoomed to extent of shapes?
To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
Date: Saturday, September 25, 2010, 9:18 AM
On Sat, Sep 25, 2010 at 3:50 AM, Martin Davis <mbdavis at refractions.net> wrote:
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)
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)
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.
http://wiki.openstreetmap.org/wiki/OSM_on_Paper
specifically walkingpapers, maposmatic, and townguide.
It probably wouldn't be too hard to hack on them to use your postgis data instead of OSM data.
The mapnik mailing lists are pretty friendly & helpful too.
HTH,
Rob :)
-----Inline Attachment Follows-----
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100924/5ec97b55/attachment.html>
More information about the postgis-users
mailing list