Package org.openstreetmap.josm.plugins.graphview.core.data

Examples of org.openstreetmap.josm.plugins.graphview.core.data.Tag


     
    }

    for (MapWaySegment segment : mapData.getMapWaySegments()) {
     
      if (segment.getTags().contains(new Tag("natural", "tree_row"))) {
        segment.addRepresentation(new TreeRow(segment));
      }
     
    }
View Full Code Here


        || tags.contains("leisure", "track");
    }
  }
 
  private static boolean isSteps(TagGroup tags) {
    return tags.contains(new Tag("highway","steps"));
  }
View Full Code Here

  public void testRepeatedRendering() throws Exception {
   
    /* create fake data */
   
    List<OSMNode> nodes = asList(
        new OSMNode(0, 0, new MapBasedTagGroup(new Tag("power","tower")), 101),
        new OSMNode(0, 0.001, new MapBasedTagGroup(new Tag("power","tower")), 102)
        );
   
    List<OSMWay> ways = asList(
        new OSMWay(new MapBasedTagGroup(new Tag("power","line"), new Tag("cables","4")), 201, nodes)
        );
   
    OSMData osmData = new OSMData(EMPTY_LIST, nodes, ways, EMPTY_LIST);
   
    /* render to multiple targets */
 
View Full Code Here

      }
     
      if (closedRings != null) {
       
        OSMRelation relation = new OSMRelation(new MapBasedTagGroup(
            new Tag("type", "multipolygon"), new Tag("natural", "water")),
            highestRelationId + 1, 0);
       
        return buildPolygonsFromRings(relation, closedRings);
       
      }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.plugins.graphview.core.data.Tag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.