Changeset 29215 in osm for applications/editors/josm/plugins/smed2/src/seamap/Renderer.java
- Timestamp:
- 2013-01-29T21:49:08+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/Renderer.java
r29207 r29215 71 71 } 72 72 73 public static double calcArea(Feature feature) {73 public static double signedArea(Feature feature) { 74 74 if (feature.flag == Fflag.AREA) { 75 75 ArrayList<Long> way; … … 91 91 llat = lat; 92 92 } 93 return Math.abs(sigma) * 3444 * 3444 / 2.0;93 return sigma; 94 94 } 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; 96 104 } 97 105
Note:
See TracChangeset
for help on using the changeset viewer.