git-svn-id: https://osmand.googlecode.com/svn/trunk@739 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-12-01 14:29:37 +00:00
parent 24db7d1f9d
commit 758920c812

View file

@ -934,11 +934,14 @@ public class IndexCreator {
// special check that address do not contain twice in a3 - border and separate a6
if (!a6.getMemberIds().contains(id)) {
Building building = new Building(border);
building.setName(hno);
DataIndexWriter.writeBuilding(addressBuildingStat, pStatements,
streetId, building, BATCH_SIZE);
if (loadInMemory) {
addressBuildingLocalSet.add(id.getId());
if (building.getLocation() != null) {
building.setName(hno);
DataIndexWriter.writeBuilding(addressBuildingStat, pStatements, streetId, building, BATCH_SIZE);
if (loadInMemory) {
addressBuildingLocalSet.add(id.getId());
}
} else {
log.error("Strange border " + id + " location couldn't be found");
}
}
}