Changeset 12725 in josm for trunk/src/org/openstreetmap/josm/data/projection/Projections.java
- Timestamp:
- 2017-09-04T20:19:23+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r12620 r12725 19 19 import org.openstreetmap.josm.Main; 20 20 import org.openstreetmap.josm.data.coor.EastNorth; 21 import org.openstreetmap.josm.data.coor.ILatLon; 21 22 import org.openstreetmap.josm.data.coor.LatLon; 22 23 import org.openstreetmap.josm.data.projection.datum.Datum; … … 192 193 * @param ll the geographical point to convert (in WGS84 lat/lon) 193 194 * @return the corresponding east/north coordinates 194 */ 195 public static EastNorth project(LatLon ll) { 195 * @since 12725 196 */ 197 public static EastNorth project(ILatLon ll) { 196 198 if (ll == null) return null; 197 199 return Main.getProjection().latlon2eastNorth(ll); 200 } 201 202 /** 203 * Convert from lat/lon to easting/northing using the current projection. 204 * 205 * @param ll the geographical point to convert (in WGS84 lat/lon) 206 * @return the corresponding east/north coordinates 207 */ 208 public static EastNorth project(LatLon ll) { 209 return project((ILatLon) ll); 198 210 } 199 211
Note:
See TracChangeset
for help on using the changeset viewer.