Ignore:
Timestamp:
2013-01-29T21:49:08+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/seamap/Renderer.java

    r29207 r29215  
    7171        }
    7272
    73         public static double calcArea(Feature feature) {
     73        public static double signedArea(Feature feature) {
    7474          if (feature.flag == Fflag.AREA) {
    7575                        ArrayList<Long> way;
     
    9191                                llat = lat;
    9292            }
    93             return Math.abs(sigma) * 3444 * 3444 / 2.0;
     93            return sigma;
    9494          }
    95           return 0.0;
     95          return 0;
     96        }
     97
     98        public boolean handOfArea(Feature feature) {
     99                return (signedArea(feature) < 0);
     100        }
     101       
     102        public static double calcArea(Feature feature) {
     103          return Math.abs(signedArea(feature)) * 3444 * 3444 / 2.0;
    96104        }
    97105
Note: See TracChangeset for help on using the changeset viewer.