Ignore:
Timestamp:
2016-11-11T17:43:17+01:00 (3 years ago)
Author:
bastiK
Message:

applied #13933 - Simplify QuadBuckets and improve memory footprint (patch by Gerd Petermann, minor modifications)

File:
1 edited

Legend:

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

    r11143 r11237  
    7575     * @since 6171
    7676     */
    77     public static int index(final double lat, final double lon, final int level) {
     77    public static byte index(final double lat, final double lon, final int level) {
    7878        long x = lon2x(lon);
    7979        long y = lat2y(lat);
    8080        int shift = NR_LEVELS-level-1;
    81         return (int) ((x >> shift & 1) * 2 + (y >> shift & 1));
     81        return (byte) ((x >> shift & 1) * 2 + (y >> shift & 1));
    8282    }
    8383}
Note: See TracChangeset for help on using the changeset viewer.