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

Examples of org.openstreetmap.josm.plugins.graphview.core.data.TagGroup.containsKey()


 
  @Override
  protected void applyToWaySegment(MapWaySegment line) {

    TagGroup tags = line.getTags();
    if (!tags.containsKey("barrier")) return; //fast exit for common case
   
    if (Wall.fits(tags)) {
      line.addRepresentation(new Wall(line));
    } else if (CityWall.fits(tags)) {
      line.addRepresentation(new CityWall(line));
View Full Code Here


 
  @Override
  protected void applyToNode(MapNode node) {

    TagGroup tags = node.getTags();
    if (!tags.containsKey("barrier") && !tags.containsKey("power")) return; //fast exit for common case

    if (Bollard.fits(tags)) {
      node.addRepresentation(new Bollard(node, tags));
    }
View Full Code Here

 
  @Override
  protected void applyToNode(MapNode node) {

    TagGroup tags = node.getTags();
    if (!tags.containsKey("barrier") && !tags.containsKey("power")) return; //fast exit for common case

    if (Bollard.fits(tags)) {
      node.addRepresentation(new Bollard(node, tags));
    }
View Full Code Here

   
    if (!area.getRepresentations().isEmpty()) return;
   
    TagGroup tags = area.getTags();
   
    if (tags.containsKey("surface")) {
      area.addRepresentation(new SurfaceArea(area, tags.getValue("surface")));
    } else {
   
      for (Tag tagWithDefault : defaultSurfaceMap.keySet()) {
        if (tags.contains(tagWithDefault)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.