|
|
|
|
@ -205,7 +205,7 @@ public class ExtractElement {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void expandRelations(InputFile dbFile, int round) throws IOException{ |
|
|
|
|
private void expandRelations(InputFile dbFile,final int round) throws IOException{ |
|
|
|
|
if(pendingRelations.isEmpty()) { |
|
|
|
|
log.atInfo().log("No relation to be expanded"); |
|
|
|
|
return; |
|
|
|
|
@ -255,6 +255,11 @@ public class ExtractElement {
|
|
|
|
|
} catch (OsmInputException e) { |
|
|
|
|
log.atError().withThrowable(e).log("Error when reading the input!"); |
|
|
|
|
} |
|
|
|
|
log.atInfo().log("There are {} relations to be expanded in next round", nextRound.size()); |
|
|
|
|
pendingRelations = nextRound; |
|
|
|
|
if(pendingRelations.size()>0){ |
|
|
|
|
expandRelations(dbFile, round+1); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void printHelp(int returnValue){ |
|
|
|
|
|