Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DegreeGridNEDTileSource attempting to load non-existent NED tiles #694

Closed
demory opened this issue Apr 27, 2012 · 0 comments
Closed

DegreeGridNEDTileSource attempting to load non-existent NED tiles #694

demory opened this issue Apr 27, 2012 · 0 comments
Labels

Comments

@demory
Copy link
Member

demory commented Apr 27, 2012

In certain large-area graphs near the edge of NED coverage the Graph builder is failing with an error similar to the following:

Exception in thread "main" java.lang.RuntimeException: org.jets3t.service.S3ServiceException: S3 Error Message. GET '/n39w074.tiff' on Host 'ned13.s3.amazonaws.com' @ 'Fri, 27 Apr 2012 13:41:51 GMT' -- ResponseCode: 404, ResponseStatus: Not Found, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>n39w074.tiff</Key><RequestId>CFA9AA884873B12D</RequestId><HostId>7tp2V7Fw65BLD035BBomwZutkYSmP2G7mHScL1AVSNEcXI9ASQPyn/ncN98Pjnb1</HostId></Error>
    at org.opentripplanner.graph_builder.impl.ned.DegreeGridNEDTileSource.getPathToTile(DegreeGridNEDTileSource.java:128)
    at org.opentripplanner.graph_builder.impl.ned.DegreeGridNEDTileSource.getNEDTiles(DegreeGridNEDTileSource.java:72)
    at org.opentripplanner.graph_builder.impl.ned.NEDGridCoverageFactoryImpl.getGridCoverage(NEDGridCoverageFactoryImpl.java:70)
    at org.opentripplanner.graph_builder.impl.ned.NEDGraphBuilderImpl.buildGraph(NEDGraphBuilderImpl.java:88)
    at org.opentripplanner.graph_builder.GraphBuilderTask.run(GraphBuilderTask.java:135)
    at org.opentripplanner.graph_builder.GraphBuilderMain.main(GraphBuilderMain.java:49)
Caused by: org.jets3t.service.S3ServiceException: S3 Error Message. GET '/n39w074.tiff' on Host 'ned13.s3.amazonaws.com' @ 'Fri, 27 Apr 2012 13:41:51 GMT' -- ResponseCode: 404, ResponseStatus: Not Found, XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>n39w074.tiff</Key><RequestId>CFA9AA884873B12D</RequestId><HostId>7tp2V7Fw65BLD035BBomwZutkYSmP2G7mHScL1AVSNEcXI9ASQPyn/ncN98Pjnb1</HostId></Error>
    at org.jets3t.service.S3Service.getObject(S3Service.java:1379)
    at org.opentripplanner.graph_builder.impl.ned.DegreeGridNEDTileSource.getPathToTile(DegreeGridNEDTileSource.java:111)
    ... 5 more

I am running into this problem with NYC metro area builds where the large rectangular extent of the graph is causing OTP to load tiles that (1) are not necessary to build the graph and (2) do not exist, causing the error. See the following case where the extents of the graph trigger the 3 x 3 grid of tiles to be loaded (lat/lon lines are approximate):

Can we instead consider the polygonal bounds of the graph when determining which NED tiles to download?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants