Commit 4e0aa3bc authored by claplace's avatar claplace
Browse files

Change the ColorMapEntry structure

parent a3b2ac61
......@@ -71,8 +71,8 @@ def write_xmlfile(file_dest,list_colour,list_amplitude,name_file,dict_att):
Rule = SubElement(FeatureTypeStyle,'Rule')
RasterSymbolizer = SubElement(Rule,'RasterSymbolizer')
for col,amp in zip(list_colour,list_amplitude):
dict_colamp = {'colour':col,'amp':amp}
ColorMapEntry = SubElement(RasterSymbolizer,'ColorMapEntry',attib=dict_colamp)
dict_colamp = {'color':col,'quantity':str(amp)}
ColorMapEntry = SubElement(RasterSymbolizer,'ColorMapEntry',attrib=dict_colamp)
tree = ET.ElementTree(root)
#return root
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment