Changeset 10316 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-06-02T02:46:59+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/GeoPropertyIndex.java
r9070 r10316 73 73 74 74 public static int index(LatLon ll, int level) { 75 long noParts = 1 << level;75 long noParts = 1L << level; 76 76 long x = ((long) ((ll.lon() + 180.0) * noParts / 360.0)) & 1; 77 77 long y = ((long) ((ll.lat() + 90.0) * noParts / 180.0)) & 1;
Note:
See TracChangeset
for help on using the changeset viewer.