Changeset 35035 in osm


Ignore:
Timestamp:
2019-06-19T09:18:54+02:00 (5 years ago)
Author:
gerdp
Message:

checkstyle: replace tabs, no dist needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pbf/src/org/openstreetmap/josm/plugins/pbf/io/PbfReader.java

    r35033 r35035  
    7474
    7575            if (header.hasBbox()) {
    76                 HeaderBBox bbox = header.getBbox();
    77                 if (bbox != null) {
    78                         double minlat = parseRawDegrees(bbox.getBottom());
    79                         double minlon = parseRawDegrees(bbox.getLeft());
    80                         double maxlat = parseRawDegrees(bbox.getTop());
    81                         double maxlon = parseRawDegrees(bbox.getRight());
    82                         Bounds b = new Bounds(minlat, minlon, maxlat, maxlon);
    83                         if (!b.isCollapsed() && areCoordinatesValid(minlat, minlon, maxlat, maxlon)) {
    84                                 ds.addDataSource(new DataSource(b, header.getSource()));
    85                         } else {
    86                                 Logging.error("Invalid Bounds: "+b);
    87                         }
    88                 }
     76                HeaderBBox bbox = header.getBbox();
     77                if (bbox != null) {
     78                    double minlat = parseRawDegrees(bbox.getBottom());
     79                    double minlon = parseRawDegrees(bbox.getLeft());
     80                    double maxlat = parseRawDegrees(bbox.getTop());
     81                    double maxlon = parseRawDegrees(bbox.getRight());
     82                    Bounds b = new Bounds(minlat, minlon, maxlat, maxlon);
     83                    if (!b.isCollapsed() && areCoordinatesValid(minlat, minlon, maxlat, maxlon)) {
     84                        ds.addDataSource(new DataSource(b, header.getSource()));
     85                    } else {
     86                        Logging.error("Invalid Bounds: "+b);
     87                    }
     88                }
    8989            }
    9090        }
Note: See TracChangeset for help on using the changeset viewer.