Changeset 30243 in osm


Ignore:
Timestamp:
2014-01-31T11:23:43+01:00 (11 years ago)
Author:
glebius
Message:

Fix indentation after r29757.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java

    r30224 r30243  
    9797    @Override
    9898    public double tileYToLat(int y, int zoom) {
    99     Random r= new Random();
     99        Random r= new Random();
    100100        double lat0, lat;
    101101
    102     lat = cached_lat;
    103     do {
    104         lat0 = lat;
     102        lat = cached_lat;
     103        do {
     104            lat0 = lat;
    105105            lat = lat - Math.toDegrees(NextTerm(Math.toRadians(lat), y, zoom));
    106106            if (lat > OsmMercator.MAX_LAT || lat < OsmMercator.MIN_LAT) {
     
    109109                    OsmMercator.MIN_LAT));
    110110            }
    111     } while ((Math.abs(lat0 - lat) > 0.000001));
     111        } while ((Math.abs(lat0 - lat) > 0.000001));
    112112
    113     cached_lat = lat;
     113        cached_lat = lat;
    114114
    115115        return (lat);
     
    120120        double sinl=Math.sin(lat);
    121121        double cosl=Math.cos(lat);
    122     double ec, f, df;
     122        double ec, f, df;
    123123
    124124        zoom = (int )Math.pow(2.0, zoom - 1);
    125     ec = Math.exp((1 - y/zoom)*Math.PI);
     125        ec = Math.exp((1 - y/zoom)*Math.PI);
    126126
    127     f = (Math.tan(Math.PI/4+lat/2) -
    128         ec * Math.pow(Math.tan(Math.PI/4 + Math.asin(E * sinl)/2), E));
     127        f = (Math.tan(Math.PI/4+lat/2) -
     128            ec * Math.pow(Math.tan(Math.PI/4 + Math.asin(E * sinl)/2), E));
    129129        df = 1/(1 - sinl) - ec * E * cosl/((1 - E * sinl) *
    130130            (Math.sqrt (1 - E * E * sinl * sinl)));
Note: See TracChangeset for help on using the changeset viewer.