Ignore:
Timestamp:
2013-01-15T15:08:25+01:00 (12 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed2/src/seamap/SeaMap.java

    r29198 r29199  
    6767        }
    6868       
     69        public class MpolyTab extends HashMap<Long, Long> {
     70                public MpolyTab() {
     71                        super();
     72                }
     73        }
     74       
    6975        public class FtrMap extends EnumMap<Obj, ArrayList<Feature>> {
    7076                public FtrMap() {
     
    108114        public WayTab ways;
    109115        public WayTab mpolys;
     116        public MpolyTab outers;
    110117        public FtrMap features;
    111118        public FtrTab index;
     
    113120        private Feature feature;
    114121        private ArrayList<Long> list;
     122        private long mpid;
    115123
    116124        public SeaMap() {
     
    145153                list = new ArrayList<Long>();
    146154                mpolys.put(id, list);
     155                mpid = id;
    147156        }
    148157
     
    152161
    153162        public void addToMpoly(long way, boolean outer) {
    154                 if (outer)
     163                if (outer) {
    155164                        list.add(0, way);
    156                 else
     165                        outers.put(way, mpid);
     166                } else {
    157167                        list.add(way);
     168                }
    158169        }
    159170
Note: See TracChangeset for help on using the changeset viewer.