Ignore:
Timestamp:
2011-02-28T12:17:19+01:00 (14 years ago)
Author:
upliner
Message:

Fix Mercator scale factor in buildings_tools and importvec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java

    r23190 r25469  
    2828
    2929class Building {
    30     private static final double eqlen = 40075004; // length of equator in metres
    3130    private final EastNorth[] en = new EastNorth[4];
    3231
     
    8382
    8483    private void updMetrics() {
    85         meter = 2 * Math.PI / (Math.cos(Math.toRadians(eastNorth2latlon(en[0]).lat())) * eqlen);
     84        meter = 1 / Math.cos(Math.toRadians(eastNorth2latlon(en[0]).lat()));
    8685        len = 0;
    8786    }
Note: See TracChangeset for help on using the changeset viewer.