Changeset 13204 in josm for trunk/src/org/openstreetmap/josm/data/projection
- Timestamp:
- 2017-12-17T00:17:20+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2Proj4DirGridShiftFileSource.java
r12868 r13204 3 3 4 4 import java.io.File; 5 import java.io.FileInputStream; 6 import java.io.FileNotFoundException; 5 import java.io.IOException; 7 6 import java.io.InputStream; 7 import java.nio.file.Files; 8 import java.nio.file.InvalidPathException; 8 9 import java.util.Arrays; 9 10 import java.util.Collections; … … 63 64 if (grid != null) { 64 65 try { 65 return new FileInputStream(grid.getAbsoluteFile());66 } catch ( FileNotFoundException ex) {67 Logging.warn(" NTV2 grid shift file not found: " + grid);68 Logging. trace(ex);66 return Files.newInputStream(grid.getAbsoluteFile().toPath()); 67 } catch (IOException | InvalidPathException ex) { 68 Logging.warn("Unable to open NTV2 grid shift file: " + grid); 69 Logging.debug(ex); 69 70 } 70 71 }
Note:
See TracChangeset
for help on using the changeset viewer.