Changeset 33165 in osm for applications


Ignore:
Timestamp:
2017-02-26T05:26:25+01:00 (8 years ago)
Author:
donvip
Message:

update to JOSM 11626

Location:
applications/editors/josm/plugins/pbf
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pbf/build.xml

    r32680 r33165  
    33
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    5     <property name="plugin.main.version" value="10580"/>
     5    <property name="plugin.main.version" value="11626"/>
    66
    77    <property name="plugin.author" value="Don-vip"/>
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java

    r32859 r33165  
    7979                Bounds b = new Bounds(minlat, minlon, maxlat, maxlon);
    8080                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()));
    8282                } else {
    8383                    Main.error("Invalid Bounds: "+b);
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfWriter.java

    r32865 r33165  
    484484
    485485        public void process(DataSet ds) {
    486             processor.processSources(ds.dataSources);
     486            processor.processSources(ds.getDataSources());
    487487            Comparator<OsmPrimitive> cmp = Comparator.comparingLong(OsmPrimitive::getUniqueId);
    488488            ds.getNodes().stream().sorted(cmp).filter(n -> n.isLatLonKnown()).forEach(processor::processNode);
Note: See TracChangeset for help on using the changeset viewer.