Changeset 30726 in osm for applications
- Timestamp:
- 2014-10-16T20:31:07+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java
r30664 r30726 350 350 } 351 351 352 public void processNode s(Collection<Node>node) {352 public void processNode(Node node) { 353 353 if (nodes == null) { 354 354 writeEmptyHeaderIfNeeded(); … … 356 356 nodes = new NodeGroup(); 357 357 } 358 for (Node n : node) { 359 if (n.getCoor() != null) { 360 nodes.add(n); 361 checkLimit(); 362 } 363 } 364 } 365 366 public void processWays(Collection<Way> way) { 358 if (node.getCoor() != null) { 359 nodes.add(node); 360 checkLimit(); 361 } 362 } 363 364 public void processWay(Way way) { 367 365 if (ways == null) { 368 366 writeEmptyHeaderIfNeeded(); … … 370 368 ways = new WayGroup(); 371 369 } 372 for (Way w : way) { 373 ways.add(w); 374 checkLimit(); 375 } 376 } 377 378 public void processRelations(Collection<Relation> relation) { 370 ways.add(way); 371 checkLimit(); 372 } 373 374 public void processRelation(Relation relation) { 379 375 if (relations == null) { 380 376 writeEmptyHeaderIfNeeded(); … … 382 378 relations = new RelationGroup(); 383 379 } 384 for (Relation r : relation) { 385 relations.add(r); 386 checkLimit(); 387 } 380 relations.add(relation); 381 checkLimit(); 388 382 } 389 383 } … … 455 449 public void process(DataSet ds) { 456 450 processor.processSources(ds.dataSources); 457 processor.processNodes(ds.getNodes()); 458 processor.processWays(ds.getWays()); 459 processor.processRelations(ds.getRelations()); 451 for (Node n : ds.getNodes()) { 452 processor.processNode(n); 453 } 454 for (Way w : ds.getWays()) { 455 processor.processWay(w); 456 } 457 for (Relation r : ds.getRelations()) { 458 processor.processRelation(r); 459 } 460 460 } 461 461
Note:
See TracChangeset
for help on using the changeset viewer.