Skip to content

Commit

Permalink
Make sure Importers notice POI nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
systemed committed May 24, 2012
1 parent d6503c3 commit 28161b1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 8 additions & 0 deletions net/systemeD/halcyon/connection/Connection.as
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ package net.systemeD.halcyon.connection {
}
}

public function registerPOINodes():void {
for each (var nodeID:Number in getAllNodeIDs()) {
var node:Node = getNode(nodeID);
if (!node.hasParentWays)
registerPOI(node);
}
}

public function getNode(id:Number):Node {
return nodes[id];
}
Expand Down
8 changes: 0 additions & 8 deletions net/systemeD/halcyon/connection/XMLBaseConnection.as
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,6 @@ package net.systemeD.halcyon.connection {
if (statusFetcher) statusFetcher.fetch(createdEntities);
}

protected function registerPOINodes():void {
for each (var nodeID:Number in getAllNodeIDs()) {
var node:Node = getNode(nodeID);
if (!node.hasParentWays)
registerPOI(node);
}
}

protected function parseTags(tagElements:XMLList):Object {
var tags:Object = {};
for each (var tagEl:XML in tagElements)
Expand Down
1 change: 0 additions & 1 deletion net/systemeD/potlatch2/utils/GpxImporter.as
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ package net.systemeD.potlatch2.utils {
tags[tag.name().localName]=tag.toString().substr(0,255);
}
var node:Node = connection.createNode(tags, wpt.@lat, wpt.@lon, push);
connection.registerPOI(node);
}

default xml namespace = new Namespace("");
Expand Down
1 change: 1 addition & 0 deletions net/systemeD/potlatch2/utils/Importer.as
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ package net.systemeD.potlatch2.utils {
var action:CompositeUndoableAction = new CompositeUndoableAction("Import layer "+connection.name);
doImport(action.push);
action.doAction(); // just do it, don't add to undo stack
connection.registerPOINodes();
if (callback!=null) { callback(connection,options,true); }
}

Expand Down

0 comments on commit 28161b1

Please sign in to comment.