projects
/
potlatch2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56417c1
)
Don't bother trying to strip namespaces from OSM files as they don't have them
author
Tom Hughes
<tom@compton.nu>
Thu, 2 Dec 2010 21:14:42 +0000
(21:14 +0000)
committer
Tom Hughes
<tom@compton.nu>
Thu, 2 Dec 2010 21:14:42 +0000
(21:14 +0000)
net/systemeD/potlatch2/utils/OsmImporter.as
patch
|
blob
|
history
diff --git
a/net/systemeD/potlatch2/utils/OsmImporter.as
b/net/systemeD/potlatch2/utils/OsmImporter.as
index 7876a26918c176dcb728d293be3766b3de45dced..4bb305ff5ce1596f70f49091ee7e8ffcbf932901 100644
(file)
--- a/
net/systemeD/potlatch2/utils/OsmImporter.as
+++ b/
net/systemeD/potlatch2/utils/OsmImporter.as
@@
-12,10
+12,7
@@
package net.systemeD.potlatch2.utils {
}
override protected function doImport():void {
- var xmlnsPattern:RegExp = new RegExp("xmlns[^\"]*\"[^\"]*\"", "gi");
- var xsiPattern:RegExp = new RegExp("xsi[^\"]*\"[^\"]*\"", "gi");
- files[0] = String(files[0]).replace(xmlnsPattern, "").replace(xsiPattern, "");
- var map:XML=new XML(files[0]);
+ var map:XML = new XML(files[0]);
var data:XML;
var oldid:Number;