Examples of OsmMap


Examples of aimax.osm.data.OsmMap

    }

    @SuppressWarnings("unchecked")
    @Override
    protected void initMapAndClassifier() {
      OsmMap map = (OsmMap) createComponent(MAP_CLASS_PROPERTY,
          OsmMap.class);
      if (map == null)
        map = new DefaultMap();
      view.setMap(map);
      classifier = (EntityClassifier<EntityViewInfo>) createComponent(
View Full Code Here

Examples of aimax.osm.data.OsmMap

  }
 
  /** Starts route generation after the calculate button has been pressed. */
  public void actionPerformed(ActionEvent e) {
    if (e.getSource() == calcButton) {
      OsmMap mapData = frame.getMap();
      List<Position> positions = routeCalculator.calculateRoute
      (mapData.getMarkers(), mapData, waySelection.getSelectedIndex());
      frame.getMap().createTrack(ROUTE_TRACK_NAME, positions);
    }
  }
View Full Code Here

Examples of aimax.osm.data.OsmMap

  class MyGpsPositionListener implements GpsPositionListener {
    @Override
    public void positionUpdated(GpsFix pos) {
      if (pos.isPosOk()) {
        OsmMap mapData = frame.getMap();
        Track track = mapData.getTrack(GPS_TRACK_NAME);
        MapNode node = null;
        if (track != null)
          node = track.getLastNode();
        if (node == null || pos.getDistKM(node) > 0.01) {
          mapData.addToTrack(GPS_TRACK_NAME, pos);
          if (gpsCombo.getSelectedIndex() == 2
              || gpsCombo.getSelectedIndex() == 3)
            frame.getView().adjustToCenter(pos.getLat(),
                pos.getLon());
        }
View Full Code Here

Examples of org.locationtech.geogig.osm.cli.commands.OSMMap

        commander.addCommand("import-history", new OSMHistoryImport());
        commander.addCommand("import", new OSMImport());
        commander.addCommand("export", new OSMExport());
        commander.addCommand("download", new OSMDownload());
        commander.addCommand("create-changeset", new CreateOSMChangeset());
        commander.addCommand("map", new OSMMap());
        commander.addCommand("unmap", new OSMUnmap());
        commander.addCommand("export-shp", new OSMExportShp());
        commander.addCommand("export-pg", new OSMExportPG());
        commander.addCommand("export-sl", new OSMExportSL());
        commander.addCommand("apply-diff", new OSMApplyDiff());
View Full Code Here

Examples of org.opentripplanner.openstreetmap.model.OSMMap

public class OpenStreetMapParserTest {
    @Test
    public void testAFBinaryParser() throws Exception {
        AnyFileBasedOpenStreetMapProviderImpl pr = new AnyFileBasedOpenStreetMapProviderImpl();
        OSMMap map = new OSMMap();
        pr.setPath(new File(URLDecoder.decode(getClass().getResource("map.osm.pbf").getPath(), "UTF-8")));
        pr.readOSM(map);
        testParser(map);
    }
View Full Code Here

Examples of org.opentripplanner.openstreetmap.model.OSMMap

    }

    @Test
    public void testAFXMLParser() throws Exception {
        AnyFileBasedOpenStreetMapProviderImpl pr = new AnyFileBasedOpenStreetMapProviderImpl();
        OSMMap map = new OSMMap();
        pr.setPath(new File(URLDecoder.decode(getClass().getResource("map.osm.gz").getPath(), "UTF-8")));
        pr.readOSM(map);
        testParser(map);
    }
View Full Code Here

Examples of org.opentripplanner.openstreetmap.model.OSMMap

    }

    @Test
    public void testBinaryParser() throws Exception {
        BinaryFileBasedOpenStreetMapProviderImpl pr = new BinaryFileBasedOpenStreetMapProviderImpl();
        OSMMap map = new OSMMap();
        pr.setPath(new File(URLDecoder.decode(getClass().getResource("map.osm.pbf").getPath(), "UTF-8")));
        pr.readOSM(map);
        testParser(map);
    }
View Full Code Here

Examples of org.opentripplanner.openstreetmap.model.OSMMap

    }

    @Test
    public void testXMLParser() throws Exception {
        FileBasedOpenStreetMapProviderImpl pr = new FileBasedOpenStreetMapProviderImpl();
        OSMMap map = new OSMMap();
        pr.setPath(new File(URLDecoder.decode(getClass().getResource("map.osm.gz").getPath(), "UTF-8")));
        pr.readOSM(map);
        testParser(map);
    }
View Full Code Here

Examples of org.opentripplanner.openstreetmap.model.OSMMap

    }

    @Test
    public void testStreamedXMLParser() throws Exception {
        StreamedFileBasedOpenStreetMapProviderImpl pr = new StreamedFileBasedOpenStreetMapProviderImpl();
        OSMMap map = new OSMMap();
        pr.setPath(new File(URLDecoder.decode(getClass().getResource("map.osm.gz").getPath(), "UTF-8")));
        pr.readOSM(map);
        testParser(map);
    }
View Full Code Here

Examples of org.opentripplanner.openstreetmap.model.OSMMap

    @Test
    public void testBasicParser() throws Exception {
        InputStream in = new GZIPInputStream(getClass().getResourceAsStream("map.osm.gz"));
        OpenStreetMapParser parser = new OpenStreetMapParser();
        OSMMap map = new OSMMap();
        parser.parseMap(in, map);
        testParser(map);
    }
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.