Support importing the <create> element only of <osmChange> files
[potlatch2.git] / net / systemeD / potlatch2 / utils / OsmImporter.as
index 19b2b5128561540989c2e68d278d386bf5240dca..3e7b0c1a33d9eb4c356d996cacb35461effc4344 100644 (file)
@@ -12,8 +12,9 @@ package net.systemeD.potlatch2.utils {
 
                override protected function doImport(push:Function):void {
                        var map:XML = new XML(files[0]);
+                       if (map.name().localName=='osmChange') { map=map.create[0]; }
+
                        var data:XML;
-                       
             var oldid:Number;
             var tags:Object;