Test of create_wrmap nearly passes now.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrmwmarkup.py
index d131402f3bee9ddd57f6bf7887294cde726099c7..b25ef636bfb38dd546cbbdd6c12be1052567a4c7 100644 (file)
@@ -535,9 +535,10 @@ def create_wrmap(geojson):
             feature_xml.text = '\n' + create_wrmap_coordinates(geo['coordinates']) + '\n'
         last_json_feature = feature_xml
         feature_xml.attrib = json_feature['properties']
+        del feature_xml.attrib['type']
 
     print last_json_feature.tag
     if last_json_feature is not None:
         last_json_feature.tail = '\n\n'
-    return xml.etree.ElementTree.tostring(wrmap_xml)
+    return xml.etree.ElementTree.tostring(wrmap_xml, encoding='utf-8')