Changeset 33031 in osm
- Timestamp:
- 2016-10-11T11:23:59+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/src/terracer/TerracerAction.java
r32426 r33031 371 371 for (int i = 0; i < nb; ++i) { 372 372 final Way terr; 373 if (i > 0 || keepOutline) { 373 boolean createNewWay = i > 0 || keepOutline; 374 if (createNewWay) { 374 375 terr = new Way(); 375 376 // add the tags of the outline to each building (e.g. source=*) … … 386 387 terr.addNode(newNodes[0][i]); 387 388 388 ways.add(addressBuilding(terr, street, streetName, associatedStreet, housenumbers, i, 389 from != null ? Integer.toString(from + i * step) : null, buildingValue)); 390 391 if (i > 0 || keepOutline) { 389 addressBuilding(terr, street, streetName, associatedStreet, housenumbers, i, 390 from != null ? Integer.toString(from + i * step) : null, buildingValue); 391 392 if (createNewWay) { 393 ways.add(terr); 392 394 this.commands.add(new AddCommand(terr)); 393 395 } else { 396 ways.add(outline); 394 397 this.commands.add(new ChangeCommand(outline, terr)); 395 398 } … … 408 411 } else { 409 412 // Single building, just add the address details 410 ways.add(addressBuilding(outline, street, streetName, associatedStreet, housenumbers, 0, start, buildingValue)); 413 addressBuilding(outline, street, streetName, associatedStreet, housenumbers, 0, start, buildingValue); 414 ways.add(outline); 411 415 } 412 416 … … 508 512 * @throws UserCancelException 509 513 */ 510 private WayaddressBuilding(Way outline, Way street, String streetName, Relation associatedStreet,514 private void addressBuilding(Way outline, Way street, String streetName, Relation associatedStreet, 511 515 List<Node> housenumbers, int i, String defaultNumber, String buildingValue) throws UserCancelException { 512 516 Node houseNum = (housenumbers != null && i >= 0 && i < housenumbers.size()) ? housenumbers.get(i) : null; … … 541 545 } 542 546 } 543 return outline;544 547 } 545 548
Note:
See TracChangeset
for help on using the changeset viewer.