Changeset 5066 in josm for trunk/src/org/openstreetmap/josm/data/projection/UTM.java
- Timestamp:
- 2012-03-10T16:18:23+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/UTM.java
r4285 r5066 20 20 import org.openstreetmap.josm.data.coor.LatLon; 21 21 import org.openstreetmap.josm.data.projection.datum.GRS80Datum; 22 import org.openstreetmap.josm.data.projection.proj.ProjParameters; 22 23 import org.openstreetmap.josm.tools.GBC; 23 24 … … 48 49 public UTM(int zone, Hemisphere hemisphere, boolean offset) { 49 50 ellps = Ellipsoid.GRS80; 50 proj = new org.openstreetmap.josm.data.projection.proj.TransverseMercator(ellps); 51 proj = new org.openstreetmap.josm.data.projection.proj.TransverseMercator(); 52 try { 53 proj.initialize(new ProjParameters() {{ ellps = UTM.this.ellps; }}); 54 } catch (ProjectionConfigurationException e) { 55 throw new RuntimeException(e); 56 } 51 57 datum = GRS80Datum.INSTANCE; 52 58 updateParameters(zone, hemisphere, offset);
Note:
See TracChangeset
for help on using the changeset viewer.