Changeset 34652 in osm for applications/editors/josm/plugins/seachart/src/s57
- Timestamp:
- 2018-09-15T13:50:24+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/s57
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/s57/S57map.java
r32909 r34652 908 908 first = false; 909 909 } else { 910 sarc += (Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat)));910 sarc += Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat)); 911 911 } 912 912 llat = lat; … … 931 931 first = false; 932 932 } else { 933 sarc = (Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat)));933 sarc = Math.acos(Math.cos(lon - llon) * Math.cos(lat - llat)); 934 934 if (sarc > harc) 935 935 break; -
applications/editors/josm/plugins/seachart/src/s57/S57obj.java
r32907 r34652 163 163 164 164 public static Obj enumType(String type) { // Convert OSM object string to SCM object enumeration 165 if ( (type != null) && !type.isEmpty() && (StrObj.containsKey(type)))165 if (type != null && !type.isEmpty() && StrObj.containsKey(type)) 166 166 return StrObj.get(type); 167 167 else -
applications/editors/josm/plugins/seachart/src/s57/S57osm.java
r33724 r34652 9 9 import s57.S57map.Snode; 10 10 import s57.S57obj.Obj; 11 import s57.S57val.CatBUA;12 11 import s57.S57val.CatROD; 13 12 import s57.S57val.Conv; … … 131 130 } 132 131 } else { 133 if ((inNode || inWay || inRel) && (ln.contains("<tag"))) {132 if ((inNode || inWay || inRel) && ln.contains("<tag")) { 134 133 k = v = ""; 135 134 String[] token = ln.split("k="); … … 205 204 ref = Long.parseLong(token.split("[\"\']")[1]); 206 205 } else if (token.matches("^type=.+")) { 207 type = (token.split("[\"\']")[1]);206 type = token.split("[\"\']")[1]; 208 207 } else if (token.matches("^role=.+")) { 209 208 String[] str = token.split("[\"\']"); 210 209 if (str.length > 1) { 211 role = (token.split("[\"\']")[1]);210 role = token.split("[\"\']")[1]; 212 211 } 213 212 } -
applications/editors/josm/plugins/seachart/src/s57/S57val.java
r33936 r34652 1654 1654 1655 1655 public static Enum<?> unknAtt(Att att) { 1656 return (Enum<?>) (keys.get(att).map.keySet().toArray()[0]);1656 return (Enum<?>) keys.get(att).map.keySet().toArray()[0]; 1657 1657 } 1658 1658 }
Note:
See TracChangeset
for help on using the changeset viewer.