Search in sources :

Example 1 with StreamedFileBasedOpenStreetMapProviderImpl

use of org.opentripplanner.openstreetmap.impl.StreamedFileBasedOpenStreetMapProviderImpl in project OpenTripPlanner by opentripplanner.

the class OpenStreetMapParserTest method testStreamedXMLParser.

@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);
}
Also used : OSMMap(org.opentripplanner.openstreetmap.model.OSMMap) StreamedFileBasedOpenStreetMapProviderImpl(org.opentripplanner.openstreetmap.impl.StreamedFileBasedOpenStreetMapProviderImpl) File(java.io.File) Test(org.junit.Test)

Aggregations

File (java.io.File)1 Test (org.junit.Test)1 StreamedFileBasedOpenStreetMapProviderImpl (org.opentripplanner.openstreetmap.impl.StreamedFileBasedOpenStreetMapProviderImpl)1 OSMMap (org.opentripplanner.openstreetmap.model.OSMMap)1