All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.graph_builder.services.ned.NEDTileSource Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.graph_builder.services.ned;

import org.opentripplanner.routing.graph.Graph;

import java.io.File;
import java.util.List;

/**
 * A source of NED tiles for NEDGridCoverageFactoryImpl -- maybe the USGS streaming
 * server, maybe one-degree tiles, maybe something else.
 * @author novalis
 */
public interface NEDTileSource {

    /**
     * Fetches all of the required data and stores it in the specified cache directory. It is crucial that this be
     * somewhere permanent with plenty of disk space.  Don't use /tmp -- the downloading process takes a long time
     * and you don't want to repeat it if at all possible.
     */
    public abstract void fetchData(Graph graph, File cacheDirectory);

    /**
     * Download all the NED tiles into the cache.
     */
    public abstract List getNEDTiles();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy