Search in sources :

Example 6 with MapBuilder

use of aimax.osm.data.MapBuilder in project aima-java by aimacode.

the class MapViewFrame method readMap.

public void readMap(InputStream stream) {
    if (stream != null) {
        MapBuilder builder = getMap().getBuilder();
        builder.setEntityClassifier(viewInfo);
        mapReader.readMap(stream, builder);
        builder.buildMap();
    } else {
        LOG.warning("Map reading failed because input stream does not exist.");
    }
}
Also used : MapBuilder(aimax.osm.data.MapBuilder)

Aggregations

MapBuilder (aimax.osm.data.MapBuilder)6 Bz2OsmReader (aimax.osm.reader.Bz2OsmReader)4 MapReader (aimax.osm.reader.MapReader)4 DefaultMapBuilder (aimax.osm.data.impl.DefaultMapBuilder)2 MapAdapter (aimax.osm.routing.MapAdapter)2