Changeset 9426 in josm for trunk


Ignore:
Timestamp:
2016-01-13T00:33:48+01:00 (9 years ago)
Author:
Don-vip
Message:

see #12186 - checkstyle

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
3 edited

Legend:

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

    r9419 r9426  
    715715        // if the box contains one of the poles, the above method did not get
    716716        // correct min/max latitude value
    717         if (proj instanceof IPolar) {;
     717        if (proj instanceof IPolar) {
    718718            IPolar polarProj = (IPolar) proj;
    719719            if (polarProj.hasPole(false)) {
  • trunk/src/org/openstreetmap/josm/data/projection/proj/AlbersEqualArea.java

    r9419 r9426  
    55
    66import org.openstreetmap.josm.data.Bounds;
    7 
    87import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
    98
     
    3534 * </ul>
    3635 *
     36 * @author Gerald I. Evenden (for original code in Proj4)
     37 * @author Rueben Schulz
     38 *
    3739 * @see <A HREF="http://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.html">Albers Equal-Area Conic Projection on MathWorld</A>
    3840 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/albers_equal_area_conic.html">"Albers_Conic_Equal_Area" on RemoteSensing.org</A>
    3941 * @see <A HREF="http://srmwww.gov.bc.ca/gis/bceprojection.html">British Columbia Albers Standard Projection</A>
    4042 *
    41  * @author Gerald I. Evenden (for original code in Proj4)
    42  * @author Rueben Schulz
     43 * @since 9419
    4344 */
    4445public class AlbersEqualArea extends AbstractProj {
     
    164165        } else {
    165166            x = 0.0;
    166             y = n > 0.0 ? Math.PI/2.0 : - Math.PI/2.0;
     167            y = n > 0.0 ? Math.PI/2.0 : -Math.PI/2.0;
    167168        }
    168169        return new double[] {y, x};
     
    181182            return phi;
    182183        }
    183         for (int i=0; i<MAXIMUM_ITERATIONS; i++) {
     184        for (int i = 0; i < MAXIMUM_ITERATIONS; i++) {
    184185            final double sinpi = Math.sin(phi);
    185186            final double cospi = Math.cos(phi);
  • trunk/src/org/openstreetmap/josm/data/projection/proj/PolarStereographic.java

    r9419 r9426  
    1414 * (parameter lat_0).
    1515 * <p>
    16  * 
     16 *
    1717 * In this file, only the polar case is implemented. This corresponds to
    1818 * EPSG:9810 (Polar Stereographic Variant A) and EPSG:9829 (Polar Stereographic
    1919 * Variant B).
    2020 * <p>
    21  * 
     21 *
    2222 * It is required, that the latitude of natural origin has the value +/-90 degrees.
    2323 * <p>
    24  * 
     24 *
    2525 * This class has been derived from the implementation of the Geotools project;
    2626 * git 8cbf52d, org.geotools.referencing.operation.projection.PolarStereographic
    2727 * at the time of migration.
    2828 * <p>
    29  * 
     29 *
    3030 * <b>References:</b>
    3131 * <ul>
     
    4444 * </ul>
    4545 *
     46 * @author André Gosselin
     47 * @author Martin Desruisseaux (PMO, IRD)
     48 * @author Rueben Schulz
     49 *
    4650 * @see <A HREF="http://mathworld.wolfram.com/StereographicProjection.html">Stereographic projection on MathWorld</A>
    4751 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/polar_stereographic.html">Polar_Stereographic</A>
     
    4953 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/stereographic.html">Stereographic</A>
    5054 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/random_issues.html#stereographic">Some Random Stereographic Issues</A>
    51  * 
     55 *
    5256 * @see DoubleStereographic
    53  *
    54  * @author André Gosselin
    55  * @author Martin Desruisseaux (PMO, IRD)
    56  * @author Rueben Schulz
     57 * @since 9419
    5758 */
    5859public class PolarStereographic extends AbstractProj implements IPolar {
     
    8889     */
    8990    boolean southPole;
    90    
     91
    9192    @Override
    9293    public String getName() {
    9394        return tr("Polar Stereographic");
    9495    }
    95    
     96
    9697    @Override
    9798    public String getProj4Id() {
     
    128129        }
    129130    }
    130    
     131
    131132    @Override
    132133    public double[] project(double y, double x) {
     
    158159        final double halfe = e/2.0;
    159160        double phi0 = 0;
    160         for (int i=MAXIMUM_ITERATIONS;;) {
     161        for (int i = MAXIMUM_ITERATIONS;;) {
    161162            final double esinphi = e * Math.sin(phi0);
    162163            final double phi = (Math.PI/2) - 2.0*Math.atan(t*Math.pow((1-esinphi)/(1+esinphi), halfe));
Note: See TracChangeset for help on using the changeset viewer.