Ejemplo n.º 1
0
 @Override
 public void startTest(ProgressMonitor monitor) {
   super.startTest(monitor);
   ways = new HashSet<>();
   endnodes = new QuadBuckets<>();
   endnodesHighway = new QuadBuckets<>();
   middlenodes = new QuadBuckets<>();
   othernodes = new HashSet<>();
   mindist = Main.pref.getDouble(PREFIX + ".node_way_distance", 10.0);
   minmiddledist = Main.pref.getDouble(PREFIX + ".way_way_distance", 0.0);
   DataSet dataSet = Main.getLayerManager().getEditDataSet();
   dsArea = dataSet == null ? null : dataSet.getDataSourceArea();
 }
Ejemplo n.º 2
0
 @Override
 public void startTest(ProgressMonitor monitor) {
   super.startTest(monitor);
   multipolygonways = new LinkedList<Way>();
   for (Relation r : Main.main.getCurrentDataSet().getRelations()) {
     if (r.isUsable() && r.isMultipolygon()) {
       for (RelationMember m : r.getMembers()) {
         if (m.getMember() != null
             && m.getMember() instanceof Way
             && m.getMember().isUsable()
             && !m.getMember().isTagged()) {
           multipolygonways.add((Way) m.getMember());
         }
       }
     }
   }
 }
Ejemplo n.º 3
0
 @Override
 public void startTest(ProgressMonitor monitor) {
   super.startTest(monitor);
   ways = new MultiMap<WayPair, OsmPrimitive>(1000);
   waysNoTags = new MultiMap<WayPairNoTags, OsmPrimitive>(1000);
 }
Ejemplo n.º 4
0
 @Override
 public void startTest(ProgressMonitor monitor) {
   super.startTest(monitor);
   relations = new MultiMap<RelationPair, OsmPrimitive>(1000);
   relations_nokeys = new MultiMap<List<RelationMember>, OsmPrimitive>(1000);
 }