add handling of markers_symbolizer to upgrade_map_xml.py script
This commit is contained in:
parent
92ed4d84c2
commit
6ff45e91fe
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue