Issue processing pbf with elevations (issue resolved)

Hiyas,

I’ve receiving errors when trying to create a new graph from a pbf datafile with elevations included.

PBF file downloaded from;
https://download.geofabrik.de/australia-oceania/new-zealand.html

SRTM downloaded from;
https://srtm.csi.cgiar.org/download

Files generated from Graphhopper;

    <dependency>
        <groupId>com.graphhopper</groupId>
        <artifactId>graphhopper-core</artifactId>
        <version>4.0</version>
    </dependency>
graphHopper = new GraphHopper()
                    .setGraphHopperLocation(locationGraphHopperFiles)
                    .setOSMFile(locationRoutingFile)
                    .setElevation(true)
                    .setAllowWrites(true)
                    .setElevationProvider(new CGIARProvider(System.getProperty("user.home")+File.separator+"srtm"+File.separator));

Is anyone able to please comment on what is causing this issue? It seems to be srtm_01_18 or is it caused by the elevation dataset directly after srtm_01_18?
Is it possible to just chuck in a bunch of elevation datafiles in the folder or does graphhopper need specific elevation datafiles where additional ones not associated to the PBF data causes errors?

Any insight would be great.

Thanks,

Turns out that it was just a memory issue…

1 Like
Powered by Discourse