add handling of markers_symbolizer to upgrade_map_xml.py script

This commit is contained in:
Dane Springmeyer 2011-02-15 18:41:20 +00:00
parent 92ed4d84c2
commit 6ff45e91fe

View file

@ -103,7 +103,7 @@ def underscore2dash(elem):
old = i[0]
elem.attrib[new] = i[1]
elem.attrib.pop(old)
print>>sys.stderr,"Changing %s to %s" % (new,old)
print>>sys.stderr,"Changing %s to %s" % (old,new)
def upgrade(input_xml,output_xml=None,indent_xml=True):
@ -196,6 +196,9 @@ def upgrade(input_xml,output_xml=None,indent_xml=True):
for sym in rule.findall('GlyphSymbolizer') or []:
fixup_sym_attributes(sym)
underscore2dash(sym)
for sym in rule.findall('MarkersSymbolizer') or []:
fixup_sym_attributes(sym)
underscore2dash(sym)
if indent_xml:
indent(root)