Changeset 33165 in osm for applications
- Timestamp:
- 2017-02-26T05:26:25+01:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/pbf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pbf/build.xml
r32680 r33165 3 3 4 4 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 5 <property name="plugin.main.version" value="1 0580"/>5 <property name="plugin.main.version" value="11626"/> 6 6 7 7 <property name="plugin.author" value="Don-vip"/> -
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java
r32859 r33165 79 79 Bounds b = new Bounds(minlat, minlon, maxlat, maxlon); 80 80 if (!b.isCollapsed() && areCoordinatesValid(minlat, minlon, maxlat, maxlon)) { 81 ds. dataSources.add(new DataSource(b, header.getSource()));81 ds.addDataSource(new DataSource(b, header.getSource())); 82 82 } else { 83 83 Main.error("Invalid Bounds: "+b); -
applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java
r32865 r33165 484 484 485 485 public void process(DataSet ds) { 486 processor.processSources(ds. dataSources);486 processor.processSources(ds.getDataSources()); 487 487 Comparator<OsmPrimitive> cmp = Comparator.comparingLong(OsmPrimitive::getUniqueId); 488 488 ds.getNodes().stream().sorted(cmp).filter(n -> n.isLatLonKnown()).forEach(processor::processNode);
Note:
See TracChangeset
for help on using the changeset viewer.