[Baypiggies] Python SVG and CGI
mvoorhie at yahoo.com
Thu Jan 28 00:20:05 CET 2010
On Wednesday 27 January 2010 3:12 pm Mark Voorhies wrote:
> On Wednesday 27 January 2010 2:03 pm Silas Toms wrote:
> > Hello All-
> > I'm trying to create a Python CGI application that will serve dynamically
> > generated SVG maps (mostly of parcel data generated using supplied GPS
> > coordinates) but I seem to be hitting the twin limitations of my (lack of)
> > knowledge of CGI and the sparseness of Python CGI documentation with
> > to the inclusion of SVG embeds or objects. Do any of you have any
> > information/documentation that you could point me towards?
> > The whole thing is so frustrating because this seems really promising, and
> > feel like I'm so close to creating something really useful.
> > PS I'm more of a GIS guy so even the most basic info might be what I need.
> > Thanks- Silas
> I haven't had time to play with it, but mapnik from the OpenStreetMap
> is C++ with python bindings and can generate SVG renderings of maps. It's
> LGPL-licensed, so it's probably worth at least looking at their code.
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
Slightly off topic, but Inkscape is useful for debugging SVG output.
ctrl-shift-x in Inkscape brings up an XML editor linked to the rendered SVG
image, so you can get immediate feedback on the results of tweaking an SVG
element. There's also a nice collection of examples for scripting Inkscape
extensions with Python.
More information about the Baypiggies