Changeset 12163 in josm for trunk/src/org/openstreetmap/josm/data/imagery/OffsetBookmark.java
- Timestamp:
- 2017-05-15T15:57:36+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/OffsetBookmark.java
r12139 r12163 118 118 LatLon center = getCenter(); 119 119 Projection offsetProj = Projections.getProjectionByCode(projection_code); 120 EastNorth centerEN = offsetProj.latlon2eastNorth(center);120 EastNorth centerEN = center.getEastNorth(offsetProj); 121 121 EastNorth shiftedEN = centerEN.add(getDisplacement()); 122 122 LatLon shifted = offsetProj.eastNorth2latlon(shiftedEN); 123 EastNorth centerEN2 = proj.latlon2eastNorth(center);124 EastNorth shiftedEN2 = proj.latlon2eastNorth(shifted);123 EastNorth centerEN2 = center.getEastNorth(proj); 124 EastNorth shiftedEN2 = shifted.getEastNorth(proj); 125 125 return shiftedEN2.subtract(centerEN2); 126 126 }
Note:
See TracChangeset
for help on using the changeset viewer.