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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
> sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>   http://www.nexusuk.org/
>
>      Servatis a periculum, servatis a maleficum - Whisper, Evanescence
>
>
> _______________________________________________
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

Reply via email to