Changeset 11237 in josm for trunk/src/org/openstreetmap/josm/data/coor
- Timestamp:
- 2016-11-11T17:43:17+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java
r11143 r11237 75 75 * @since 6171 76 76 */ 77 public static intindex(final double lat, final double lon, final int level) {77 public static byte index(final double lat, final double lon, final int level) { 78 78 long x = lon2x(lon); 79 79 long y = lat2y(lat); 80 80 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)); 82 82 } 83 83 }
Note:
See TracChangeset
for help on using the changeset viewer.