Changeset 8870 in josm for trunk/src/org/openstreetmap/josm/data/projection
- Timestamp:
- 2015-10-13T23:50:14+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection/datum
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r8510 r8870 83 83 private NTV2SubGrid lastSubGrid; 84 84 85 private void readBytes(InputStream in, byte[] b) throws IOException {85 private static void readBytes(InputStream in, byte[] b) throws IOException { 86 86 if (in.read(b) < b.length) { 87 87 Main.error("Failed to read expected amount of bytes ("+ b.length +") from stream"); … … 167 167 * @return an array of top level Sub Grids with lower level Sub Grids set. 168 168 */ 169 private NTV2SubGrid[] createSubGridTree(NTV2SubGrid[] subGrid) {169 private static NTV2SubGrid[] createSubGridTree(NTV2SubGrid[] subGrid) { 170 170 int topLevelCount = 0; 171 171 Map<String, List<NTV2SubGrid>> subGridMap = new HashMap<>(); -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java
r8512 r8870 149 149 } 150 150 151 private void readBytes(InputStream in, byte[] b) throws IOException {151 private static void readBytes(InputStream in, byte[] b) throws IOException { 152 152 if (in.read(b) < b.length) { 153 153 Main.error("Failed to read expected amount of bytes ("+ b.length +") from stream"); … … 209 209 * @return interpolated value 210 210 */ 211 private double interpolate(float a, float b, float c, float d, double x, double y) {211 private static double interpolate(float a, float b, float c, float d, double x, double y) { 212 212 return a + (((double) b - (double) a) * x) + (((double) c - (double) a) * y) + 213 213 (((double) a + (double) d - b - c) * x * y);
Note:
See TracChangeset
for help on using the changeset viewer.