Changeset 13173 in josm for trunk/src/org/openstreetmap/josm/data/projection/Projections.java
- Timestamp:
- 2017-11-28T00:56:29+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r12786 r13173 18 18 import java.util.regex.Pattern; 19 19 20 import org.openstreetmap.josm.Main;21 import org.openstreetmap.josm.data.coor.EastNorth;22 import org.openstreetmap.josm.data.coor.ILatLon;23 import org.openstreetmap.josm.data.coor.LatLon;24 20 import org.openstreetmap.josm.data.projection.datum.Datum; 25 21 import org.openstreetmap.josm.data.projection.datum.GRS80Datum; … … 181 177 182 178 /** 183 * Convert from lat/lon to easting/northing using the current projection.184 *185 * @param ll the geographical point to convert (in WGS84 lat/lon)186 * @return the corresponding east/north coordinates187 * @since 12725188 * @deprecated use <code>Main.getProjection().latlon2eastNorth(ll)</code>189 */190 @Deprecated191 public static EastNorth project(ILatLon ll) {192 if (ll == null) return null;193 return Main.getProjection().latlon2eastNorth(ll);194 }195 196 /**197 * Convert from lat/lon to easting/northing using the current projection.198 *199 * @param ll the geographical point to convert (in WGS84 lat/lon)200 * @return the corresponding east/north coordinates201 * @deprecated use <code>Main.getProjection().latlon2eastNorth(ll)</code>202 */203 @Deprecated204 public static EastNorth project(LatLon ll) {205 return project((ILatLon) ll);206 }207 208 /**209 * Convert from easting/norting to lat/lon using the current projection.210 *211 * @param en the geographical point to convert (in projected coordinates)212 * @return the corresponding lat/lon (WGS84)213 * @deprecated use <code>Main.getProjection().eastNorth2latlon(en)</code>214 */215 @Deprecated216 public static LatLon inverseProject(EastNorth en) {217 if (en == null) return null;218 return Main.getProjection().eastNorth2latlon(en);219 }220 221 /**222 179 * Plugins can register additional base projections. 223 180 *
Note:
See TracChangeset
for help on using the changeset viewer.