Changeset 12795 in josm for trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
- Timestamp:
- 2017-09-09T10:35:27+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r12760 r12795 55 55 private boolean platform; 56 56 private boolean useProjection; 57 private boolean useProjectionNadGrids; 57 58 private boolean commands; 58 59 private boolean allowMemoryManagerLeaks; … … 154 155 public JOSMTestRules projection() { 155 156 useProjection = true; 157 return this; 158 } 159 160 /** 161 * Set up loading of NTV2 grit shift files to support projections that need them. 162 * @return this instance, for easy chaining 163 */ 164 public JOSMTestRules projectionNadGrids() { 165 useProjectionNadGrids = true; 156 166 return this; 157 167 } … … 313 323 if (useProjection) { 314 324 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator 325 } 326 327 if (useProjectionNadGrids) { 328 MainApplication.setupNadGridSources(); 315 329 } 316 330
Note:
See TracChangeset
for help on using the changeset viewer.