Search in sources :

Example 1 with MultiCSVLogger

use of org.onebusaway.transit_data_federation.bundle.tasks.MultiCSVLogger in project onebusaway-application-modules by camsys.

the class HastusGtfsFactory method run.

public void run() throws Exception {
    logger = new MultiCSVLogger();
    // hack to swap directories
    String csvDir = _gtfsOutputPath.toString().replace("_gtfs/29", "s");
    logger.setBasePath(new File(csvDir));
    _log.info("setting up MultiCSVLogger at path " + csvDir);
    processAgency();
    processStops();
    processRoutesStopSequences();
    processShapes();
    processSchedules();
    processCalendars();
    GtfsWriter writer = new GtfsWriter();
    writer.setOutputLocation(_gtfsOutputPath);
    writer.run(_dao);
    writer.close();
    // Release the dao
    _dao = null;
    applyModifications();
    logger.summarize();
    _log.info("MultiCSVLogger summarize called");
}
Also used : MultiCSVLogger(org.onebusaway.transit_data_federation.bundle.tasks.MultiCSVLogger) LineString(com.vividsolutions.jts.geom.LineString) MultiLineString(com.vividsolutions.jts.geom.MultiLineString) File(java.io.File) GtfsWriter(org.onebusaway.gtfs.serialization.GtfsWriter)

Aggregations

LineString (com.vividsolutions.jts.geom.LineString)1 MultiLineString (com.vividsolutions.jts.geom.MultiLineString)1 File (java.io.File)1 GtfsWriter (org.onebusaway.gtfs.serialization.GtfsWriter)1 MultiCSVLogger (org.onebusaway.transit_data_federation.bundle.tasks.MultiCSVLogger)1