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

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


      } else {
       
        TagGroup[] result = new TagGroup[resultMaps.length];
       
        for (int i = 0; i < resultMaps.length; i++) {
          result[i] = new MapBasedTagGroup(resultMaps[i]);
        }
       
        return result;
       
      }
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

    } else {
      Map<String, String> tagMap = new HashMap<String, String>(entity.getTags().size());
      for (Tag tag : entity.getTags()) {
        tagMap.put(tag.getKey(), tag.getValue());
      }
      return new MapBasedTagGroup(tagMap);
    }
  }
View Full Code Here

  private TagGroup tagGroupForEntity(Entity entity) {
    Map<String, String> tagMap = new HashMap<String, String>(entity.getTags().size());
    for (Tag tag : entity.getTags()) {
      tagMap.put(tag.getKey(), tag.getValue());
    }
    return new MapBasedTagGroup(tagMap);
  }
View Full Code Here

TOP

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

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.