Ignore:
Timestamp:
2018-04-07T20:42:34+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16129 - projections rework for new ESRI file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Bounds.java

    r13173 r13602  
    355355    public String toShortString(DecimalFormat format) {
    356356        return format.format(minLat) + ' '
    357         + format.format(minLon) + " / "
    358         + format.format(maxLat) + ' '
    359         + format.format(maxLon);
     357             + format.format(minLon) + " / "
     358             + format.format(maxLat) + ' '
     359             + format.format(maxLon);
    360360    }
    361361
     
    513513     */
    514514    public double getArea() {
    515         double w = getWidth();
    516         return w * (maxLat - minLat);
     515        return getWidth() * (maxLat - minLat);
    517516    }
    518517
     
    523522     */
    524523    public String encodeAsString(String separator) {
    525         StringBuilder sb = new StringBuilder();
    526         sb.append(minLat).append(separator).append(minLon)
    527         .append(separator).append(maxLat).append(separator)
    528         .append(maxLon);
    529         return sb.toString();
     524        return new StringBuilder()
     525          .append(minLat).append(separator).append(minLon).append(separator)
     526          .append(maxLat).append(separator).append(maxLon).toString();
    530527    }
    531528
     
    574571        Bounds bounds = (Bounds) obj;
    575572        return Double.compare(bounds.minLat, minLat) == 0 &&
    576                 Double.compare(bounds.minLon, minLon) == 0 &&
    577                 Double.compare(bounds.maxLat, maxLat) == 0 &&
    578                 Double.compare(bounds.maxLon, maxLon) == 0;
     573               Double.compare(bounds.minLon, minLon) == 0 &&
     574               Double.compare(bounds.maxLat, maxLat) == 0 &&
     575               Double.compare(bounds.maxLon, maxLon) == 0;
    579576    }
    580577}
Note: See TracChangeset for help on using the changeset viewer.