Ignore:
Timestamp:
2017-11-28T00:56:29+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15310 - remove most of deprecated APIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r12786 r13173  
    1818import java.util.regex.Pattern;
    1919
    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;
    2420import org.openstreetmap.josm.data.projection.datum.Datum;
    2521import org.openstreetmap.josm.data.projection.datum.GRS80Datum;
     
    181177
    182178    /**
    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 coordinates
    187      * @since 12725
    188      * @deprecated use <code>Main.getProjection().latlon2eastNorth(ll)</code>
    189      */
    190     @Deprecated
    191     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 coordinates
    201      * @deprecated use <code>Main.getProjection().latlon2eastNorth(ll)</code>
    202      */
    203     @Deprecated
    204     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     @Deprecated
    216     public static LatLon inverseProject(EastNorth en) {
    217         if (en == null) return null;
    218         return Main.getProjection().eastNorth2latlon(en);
    219     }
    220 
    221     /**
    222179     * Plugins can register additional base projections.
    223180     *
Note: See TracChangeset for help on using the changeset viewer.