From 66d84dd34cd0b8d346bcd1ba48a09051bca071a3 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 10 Sep 2012 01:29:49 +0200 Subject: [PATCH] Fix interpolation issue --- DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java | 2 +- .../osmand/data/preparation/address/IndexAddressCreator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java b/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java index dbacef62f1..707cb81986 100644 --- a/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java +++ b/DataExtractionOSM/src/net/osmand/binary/BinaryInspector.java @@ -49,7 +49,7 @@ public class BinaryInspector { // test cases show info -// inspector(new String[]{/*"-vmap", "-bbox=-121.785,37.35,-121.744,37.33", */"/home/victor/projects/OsmAnd/data/osm-gen/Austria_2.obf"}); + //inspector(new String[]{"-vaddress",/* "-bbox=-121.785,37.35,-121.744,37.33", */"/home/victor/projects/OsmAnd/data/osm-gen/Map.obf"}); // test case extract parts // test case } diff --git a/DataExtractionOSM/src/net/osmand/data/preparation/address/IndexAddressCreator.java b/DataExtractionOSM/src/net/osmand/data/preparation/address/IndexAddressCreator.java index 9b45135a79..23d6cc3bf4 100644 --- a/DataExtractionOSM/src/net/osmand/data/preparation/address/IndexAddressCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/preparation/address/IndexAddressCreator.java @@ -685,7 +685,7 @@ public class IndexAddressCreator extends AbstractIndexPartCreator{ } } } - if (type != null && interpolationInterval > 0) { + if (type != null || interpolationInterval > 0) { List nodesWithHno = new ArrayList(); for (Node n : ((Way) e).getNodes()) { if (n.getTag(OSMTagKey.ADDR_HOUSE_NUMBER) != null && n.getTag(OSMTagKey.ADDR_STREET) != null) {