Ignore:
Timestamp:
2017-09-08T01:04:05+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - deprecate Projections#project and Projections#inverseProject

replacement is a bit more verbose, but the fact that Main.proj is
involved need not be hidden

File:
1 edited

Legend:

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

    r12725 r12778  
    194194     * @return the corresponding east/north coordinates
    195195     * @since 12725
    196      */
     196     * @deprecated use <code>Main.getProjection().latlon2eastNorth(ll)</code>
     197     */
     198    @Deprecated
    197199    public static EastNorth project(ILatLon ll) {
    198200        if (ll == null) return null;
     
    205207     * @param ll the geographical point to convert (in WGS84 lat/lon)
    206208     * @return the corresponding east/north coordinates
    207      */
     209     * @deprecated use <code>Main.getProjection().latlon2eastNorth(ll)</code>
     210     */
     211    @Deprecated
    208212    public static EastNorth project(LatLon ll) {
    209213        return project((ILatLon) ll);
     
    215219     * @param en the geographical point to convert (in projected coordinates)
    216220     * @return the corresponding lat/lon (WGS84)
    217      */
     221     * @deprecated use <code>Main.getProjection().eastNorth2latlon(en)</code>
     222     */
     223    @Deprecated
    218224    public static LatLon inverseProject(EastNorth en) {
    219225        if (en == null) return null;
Note: See TracChangeset for help on using the changeset viewer.