* Andreas Barth ([EMAIL PROTECTED]) [080527 16:45]: > [...] I have now put a bit of that stuff together.
All files (including sample code) is at http://alius.ayous.org/~aba/osm-formater-1/ I re-formated the road-sections. They now look like this: <!-- PRIMARY--> <RuleMulti> <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter> <LineParam name="stroke">#e46d71</LineParam> <Scale min="2000000" max="5000000"><LineParam name="stroke-width">0.7</LineParam></Scale> <Scale min="500000" max="2000000"><LineParam name="stroke-width">1.6</LineParam></Scale> <Scale min="200000" max="500000"><LineParam name="stroke-width">2.5</LineParam></Scale> </RuleMulti> 3template.py is the actual python code osm-template-reformated.xml is the result of the operation osm-template.xml the original file I used osmshort.xml is the new source file I know that the python code isn't final yet, and also that there are few spaces too much in the resulting xml file. If the trend however looks ok, I'd continue reformating the sections in that way (railways need to swap places, so I didn't do that yet), and adding code for other cases. (And as said before, I'm quite sure that after the first reformating round, there'll be a second one where we learned much from the first one.) Cheers, Andi -- http://home.arcor.de/andreas-barth/ _______________________________________________ talk mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

