[OSM-talk] simplifying mapnik layout definition

Beau Gunderson beau at beaugunderson.com
Wed May 28 10:32:32 BST 2008


What about using the Python bindings and actual Mapnik objects to create the
XML file?

It should be able to save an XML file, and that way you can abstract out all
of the XML text from your program too...


Beau

On Wed, May 28, 2008 at 3:05 AM, Steve Hill <steve at nexusuk.org> wrote:

> On Tue, 27 May 2008, Andy Allan wrote:
>
> > Now, if someone is volunteering to make a concise definition format
> > that can be pre-processed into the mapnik XML format (or mapnik python
> > code, or even just read by a modified mapnik directly, or whatever)
> > then I'd absolutely love to SEE THE WORKING CODE. That osm.xml is an
> > unwieldy beast isn't in question, nor are the myriad of possibilities
> > to improve it - what is lacking is working alternative.
>
> For OpenPisteMap I create the XML using some PHP code:
>
> https://public.subversion.nexusuk.org/trac/browser/openpistemap/trunk/scripts/mktemplate.php
>
> I've not converted the entire XML file yet, and I don't pretend it is a
> universal solution, but I find it easier to work with than the raw MapNik
> XML file.
>
> It would be nice to have some kind of cascading language so that styles
> can be defined for each object at the top level and then modified for each
> zoom level, but I suspect no one has the time to do it (I certainly
> don't).
>
>  - Steve
>    xmpp:steve at nexusuk.org <xmpp%3Asteve at nexusuk.org>
> sip:steve at nexusuk.org <sip%3Asteve at nexusuk.org>   http://www.nexusuk.org/
>
>      Servatis a periculum, servatis a maleficum - Whisper, Evanescence
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080528/6f06e71b/attachment.html>


More information about the talk mailing list