Changeset 29198 in osm for applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java
- Timestamp:
- 2013-01-14T19:11:27+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java
r29184 r29198 38 38 39 39 public class AttMap extends EnumMap<Att, AttItem> { 40 private static final long serialVersionUID = 1L;41 40 public AttMap() { 42 41 super(Att.class); … … 45 44 46 45 public class ObjTab extends HashMap<Integer, AttMap> { 47 private static final long serialVersionUID = 1L;48 46 public ObjTab() { 49 47 super(); … … 52 50 53 51 public class ObjMap extends EnumMap<Obj, ObjTab> { 54 private static final long serialVersionUID = 1L;55 52 public ObjMap() { 56 53 super(Obj.class); … … 59 56 60 57 public class NodeTab extends HashMap<Long, Coord> { 61 private static final long serialVersionUID = 1L;62 58 public NodeTab() { 63 59 super(); … … 66 62 67 63 public class WayTab extends HashMap<Long, ArrayList<Long>> { 68 private static final long serialVersionUID = 1L;69 64 public WayTab() { 70 65 super(); … … 73 68 74 69 public class FtrMap extends EnumMap<Obj, ArrayList<Feature>> { 75 private static final long serialVersionUID = 1L;76 70 public FtrMap() { 77 71 super(Obj.class); … … 80 74 81 75 public class FtrTab extends HashMap<Long, Feature> { 82 private static final long serialVersionUID = 1L;83 76 public FtrTab() { 84 77 super(); … … 131 124 132 125 public void addNode(long id, double lat, double lon) { 133 nodes.put(id, new Coord( lat, lon));126 nodes.put(id, new Coord(Math.toRadians(lat), Math.toRadians(lon))); 134 127 feature = new Feature(); 135 128 feature.refs = id; … … 138 131 139 132 public void moveNode(long id, double lat, double lon) { 140 nodes.put(id, new Coord( lat, lon));133 nodes.put(id, new Coord(Math.toRadians(lat), Math.toRadians(lon))); 141 134 } 142 135
Note:
See TracChangeset
for help on using the changeset viewer.
