Ignore:
Timestamp:
2015-12-14T23:18:24+01:00 (8 years ago)
Author:
bastiK
Message:

guess resonable projection bounds, when they haven't been specified (see #12186)

File:
1 edited

Legend:

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

    r8568 r9124  
    22package org.openstreetmap.josm.data.projection.proj;
    33
     4import org.openstreetmap.josm.data.Bounds;
    45import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
    56
     
    6465     */
    6566    double[] invproject(double east, double north);
     67
     68    /**
     69     * Return the bounds where this projection is applicable.
     70     *
     71     * This is a fallback for when the projection bounds are not specified
     72     * explicitly.
     73     *
     74     * In this area, the round trip lat/lon -> east/north -> lat/lon should
     75     * return the starting value with small error. In addition, regions with
     76     * extreme distortions should be excluded, if possible.
     77     *
     78     * It need not be the absolute maximum, but rather an area that is safe to
     79     * display in JOSM and contain everything that one would expect to use.
     80     *
     81     * @return the bounds where this projection is applicable, null if unknown
     82     */
     83    Bounds getAlgorithmBounds();
    6684}
Note: See TracChangeset for help on using the changeset viewer.