Changeset 18494 in josm for trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
- Timestamp:
- 2022-06-15T19:27:05+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionReader.java
r18466 r18494 37 37 import org.openstreetmap.josm.data.ViewportData; 38 38 import org.openstreetmap.josm.data.coor.EastNorth; 39 import org.openstreetmap.josm.data.coor.ILatLon; 39 40 import org.openstreetmap.josm.data.coor.LatLon; 40 41 import org.openstreetmap.josm.data.projection.Projection; … … 144 145 // not too small to avoid rounding errors. 145 146 double dist = 0.01 * proj.getDefaultZoomInPPD(); 146 LatLon ll1 = proj.eastNorth2latlon(new EastNorth(centerEN.east() - dist, centerEN.north())); 147 LatLon ll2 = proj.eastNorth2latlon(new EastNorth(centerEN.east() + dist, centerEN.north())); 147 ILatLon ll1 = proj.eastNorth2latlon(new EastNorth(centerEN.east() - dist, centerEN.north())); 148 ILatLon ll2 = proj.eastNorth2latlon(new EastNorth(centerEN.east() + dist, centerEN.north())); 148 149 double meterPerEasting = ll1.greatCircleDistance(ll2) / dist / 2; 149 150 double scale = meterPerPixel / meterPerEasting; // unit: easting per pixel
Note:
See TracChangeset
for help on using the changeset viewer.
