kopia lustrzana https://github.com/JOSM/MapWithAI
MergeAddressBuildings: Consider any node with an `addr:` tag to be an address node
Signed-off-by: Taylor Smock <tsmock@fb.com>pull/1/head
rodzic
290aec3f1e
commit
0ea652f46d
|
@ -83,7 +83,7 @@ public class MergeAddressBuildings extends AbstractConflationCommand {
|
|||
final Collection<IPrimitive> nodesInside = Geometry.filterInsideAnyPolygon(toCheck, object);
|
||||
|
||||
final List<Node> nodesWithAddresses = nodesInside.stream().filter(Node.class::isInstance).map(Node.class::cast)
|
||||
.filter(node -> node.hasKey("addr:housenumber", "addr:housename", "addr:postcode"))
|
||||
.filter(node -> node.keySet().stream().anyMatch(str -> str.startsWith("addr:")))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
final List<Command> commandList = new ArrayList<>();
|
||||
|
|
Ładowanie…
Reference in New Issue