Package org.osm2world.core.map_data.creation.index

Examples of org.osm2world.core.map_data.creation.index.MapDataIndex


   * calculates intersections and adds the information to the
   * {@link MapElement}s
   */
  private static void calculateIntersectionsInMapData(MapData mapData) {
   
    MapDataIndex index = new MapIntersectionGrid(mapData.getDataBoundary());
   
    for (MapElement e1 : mapData.getMapElements()) {
     
      /* collect all nearby elements */
     
      Collection<? extends Iterable<MapElement>> leaves
          = index.insertAndProbe(e1);
     
      Iterable<MapElement> nearbyElements;
     
      if (leaves.size() == 1) {
        nearbyElements = leaves.iterator().next();
View Full Code Here

TOP

Related Classes of org.osm2world.core.map_data.creation.index.MapDataIndex

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.