Package aimax.osm.data.impl

Examples of aimax.osm.data.impl.DefaultMapBuilder.buildMap()


  public void readMap(InputStream stream) {
    if (stream != null) {
      MapReader mapReader = new Bz2OsmReader();
      MapBuilder mapBuilder = new DefaultMapBuilder();
      mapReader.readMap(stream, mapBuilder);
      map = new MapAdapter(mapBuilder.buildMap());
    }
    else
      LOG.warning("Map reading failed because input stream does not exist.");
  }
 
View Full Code Here


  /** Reads a map from the specified file and stores it in {@link #map}. */
  public void readMap(File file) {
    MapReader mapReader = new Bz2OsmReader();
    MapBuilder mapBuilder = new DefaultMapBuilder();
    mapReader.readMap(file, mapBuilder);
    map = new MapAdapter(mapBuilder.buildMap());
  }
 
  /**
   * Reads the default map showing the city of Ulm if no map
   * has been loaded yet and calls the super class implementation.
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.