Changeset 30996 in osm for applications/editors/josm
- Timestamp:
- 2015-02-15T21:08:12+01:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/s57/S57map.java
r30894 r30996 757 757 git.nextEdge(); 758 758 while (git.hasNode()) { 759 llon = lon;760 llat = lat;761 759 node = git.next(); 762 lat = node.lat; 763 lon = node.lon; 764 sigma += (lon * Math.sin(llat)) - (llon * Math.sin(lat)); 760 if (node != null) { 761 llon = lon; 762 llat = lat; 763 lat = node.lat; 764 lon = node.lon; 765 sigma += (lon * Math.sin(llat)) - (llon * Math.sin(lat)); 766 } 765 767 } 766 768 } … … 794 796 lat = node.lat; 795 797 lon = node.lon; 796 } else {798 } else if (node != null) { 797 799 llat = lat; 798 800 llon = lon; -
applications/editors/josm/plugins/seachart/src/seachart/SeachartAction.java
r30995 r30996 149 149 LatLon coor = node.getCoor(); 150 150 if (coor != null) { 151 map.addNode(node.getUniqueId(), node.getCoor().lat(), node.getCoor().lon());151 map.addNode(node.getUniqueId(), coor.lat(), coor.lon()); 152 152 for (Entry<String, String> entry : node.getKeys().entrySet()) { 153 153 map.addTag(entry.getKey(), entry.getValue());
Note:
See TracChangeset
for help on using the changeset viewer.