Changeset 12375 in josm for trunk/src/org
- Timestamp:
- 2017-06-09T21:37:52+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/coor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/EastNorth.java
r12093 r12375 2 2 package org.openstreetmap.josm.data.coor; 3 3 4 import org.openstreetmap.gui.jmapviewer.JMapViewer; 4 5 import org.openstreetmap.gui.jmapviewer.Projected; 5 6 import org.openstreetmap.gui.jmapviewer.interfaces.IProjected; … … 16 17 private static final long serialVersionUID = 1L; 17 18 19 /** 20 * A zero constant 21 */ 18 22 public static final EastNorth ZERO = new EastNorth(0, 0); 19 23 … … 184 188 } 185 189 190 /** 191 * Converts this to a {@link IProjected} instance to be used in the {@link JMapViewer} 192 * @return The projected 193 */ 186 194 public IProjected toProjected() { 187 195 return new Projected(east(), north()); -
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r12163 r12375 52 52 */ 53 53 public static final double MAX_SERVER_PRECISION = 1e-7; 54 /** 55 * The inverse of the server precision 56 * @see #MAX_SERVER_PRECISION 57 */ 54 58 public static final double MAX_SERVER_INV_PRECISION = 1e7; 55 59 … … 70 74 private static DecimalFormat cDmMinuteFormatter = new DecimalFormat( 71 75 Main.pref == null ? "00.000" : Main.pref.get("latlon.dm.decimal-format", "00.000")); 76 /** 77 * The normal number format for server precision coordinates 78 */ 72 79 public static final DecimalFormat cDdFormatter; 80 /** 81 * The number format used for high precision coordinates 82 */ 73 83 public static final DecimalFormat cDdHighPecisionFormatter; 74 84 static { -
trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java
r11237 r12375 4 4 import org.openstreetmap.josm.tools.Utils; 5 5 6 /** 7 * This class helps in tiling the world into multiple quad tiles. 8 */ 6 9 public final class QuadTiling { 7 10 … … 10 13 } 11 14 15 /** 16 * The maximum number of levels to split the quads 17 */ 12 18 public static final int NR_LEVELS = 24; 19 /** 20 * The number of parts the world is split into in each direction 21 */ 13 22 public static final double WORLD_PARTS = 1 << NR_LEVELS; 14 23 24 /** 25 * The log(2) of how many tiles there are per level 26 */ 15 27 public static final int TILES_PER_LEVEL_SHIFT = 2; // Has to be 2. Other parts of QuadBuckets code rely on it 28 /** 29 * How many tiles there are per level 30 */ 16 31 public static final int TILES_PER_LEVEL = 1 << TILES_PER_LEVEL_SHIFT; 32 /** 33 * The size of the world in X direction 34 */ 17 35 public static final int X_PARTS = 360; 36 /** 37 * The offset of the world in x direction 38 */ 18 39 public static final int X_BIAS = -180; 19 40 41 /** 42 * The size of the world in y direction 43 */ 20 44 public static final int Y_PARTS = 180; 45 /** 46 * The offset of the world in y direction 47 */ 21 48 public static final int Y_BIAS = -90; 22 49 50 /** 51 * Converts a tile index to a lat/lon position 52 * @param quad The tile to convert 53 * @return The lat/lon position of that tile 54 */ 23 55 public static LatLon tile2LatLon(long quad) { 24 56 // The world is divided up into X_PARTS,Y_PARTS.
Note:
See TracChangeset
for help on using the changeset viewer.