Changeset 31031 in osm for applications/editors/josm/plugins/seachart/src/s57
- Timestamp:
- 2015-02-20T12:34:09+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/seachart/src/s57/S57map.java ¶
r31028 r31031 942 942 while (git.hasNode()) { 943 943 node = git.next(); 944 if (node != null) { 945 llon = lon; 946 llat = lat; 947 lat = node.lat; 948 lon = node.lon; 949 sigma += (lon * Math.sin(llat)) - (llon * Math.sin(lat)); 950 } 944 if (node == null) continue; 945 llon = lon; 946 llat = lat; 947 lat = node.lat; 948 lon = node.lon; 949 sigma += (lon * Math.sin(llat)) - (llon * Math.sin(lat)); 951 950 } 952 951 } … … 1009 1008 while (git.hasNode()) { 1010 1009 Snode node = git.next(); 1010 if (node == null) continue; 1011 1011 lat = node.lat; 1012 1012 lon = node.lon; … … 1031 1031 while (git.hasNode()) { 1032 1032 Snode node = git.next(); 1033 if (node == null) continue; 1033 1034 lat = node.lat; 1034 1035 lon = node.lon;
Note:
See TracChangeset
for help on using the changeset viewer.