mapbox / tilelive-omnivore

Implements the tilelive api for a variety of data sources
ISC License
8 stars 11 forks source link

replace() function on layername #2

Closed GretaCB closed 9 years ago

GretaCB commented 9 years ago

The following error was traced back to this replace function...

## ddd51a1b-1bc4-4666-83b5-d1b65c457cc8

[Tue, 09 Dec 2014 08:02:24 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] Watchbot received message ddd51a1b
[Tue, 09 Dec 2014 08:02:24 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] Stack: unpacker-sidecar-Watchbot-ZDOS8481WBWH
[Tue, 09 Dec 2014 08:02:24 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] InstanceId: i-5ededfb4
[Tue, 09 Dec 2014 08:02:25 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] InstanceDNS: ec2-54-227-94-86.compute-1.amazonaws.com
[Tue, 09 Dec 2014 08:02:25 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] ReceiptHandle: AQEBva6ssDGJ/Ej88MD3y6hsCPBYda2qovuFzzP6/JHyBiZlb4XkY3taYQMo00LOd5OhBFR2OHTKQlgP+kYWlQTiHeou7Iu9EN1b8xcaCKwHwY7VaDl0VEathh85FcPTq+i5RElQ2k+xb1T8+Vza2zyA8mzw7txxsQ7NlPsIcwTrLMYAeo1pH3ZoS4kRbauzKDs/4IOI48CycZMXxuBVuOqS1WPRdgsluNZQhdZB8FYFgy3nrXukAunBPH/CJ71Qhtk0SeUzxaoRnYMpVbhUv9T5BU7MLCfjiOR4kVdsjTh2/rZijwybkqI0HJ3zy8KAieamaMtVIAi/Ppm7iobuVfELFZ5SiKhMQzelHbUfTo6Wi4qy24GK4cmnCnxCxHFXMDT8
[Tue, 09 Dec 2014 08:02:25 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] SentTimestamp: 1418112144716
[Tue, 09 Dec 2014 08:02:25 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] ApproximateFirstReceiveTimestamp: 1418112144717
[Tue, 09 Dec 2014 08:02:25 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] ApproximateReceiveCount: 1
[Tue, 09 Dec 2014 08:02:25 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] Subject: map.upload.created
[Tue, 09 Dec 2014 08:02:25 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] Message: {"id":"f86725546bfa8f79a1f2bd02ce3ddcd6","owner":"cognitio","data":"cognitio.sht49529","url":"http://tilestream-tilesets-production.s3.amazonaws.com/_pending/cognitio/a39af01a87a8fbf15d9b600e9f85d2ce","parts":1,"part":0}
[Tue, 09 Dec 2014 08:02:26 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] [info] Checked if upload job already errored: false
[Tue, 09 Dec 2014 08:02:26 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] [info] Downloaded file from http://tilestream-tilesets-production.s3.amazonaws.com/_pending/cognitio/a39af01a87a8fbf15d9b600e9f85d2ce to /tmp/5bb4178d8d9f0922b656ed94be74f319
[Tue, 09 Dec 2014 08:02:27 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] [info] File type detected: kml
[Tue, 09 Dec 2014 08:02:27 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] [error] File failed validation
[Tue, 09 Dec 2014 08:02:27 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] [error] OGR Plugin: cannot find layer by name 'Nationalpark-Grenze_Kellerwald_kml' in dataset '/tmp/5bb4178d8d9f0922b656ed94be74f319'  encountered during parsing of layer 'Nationalpark-Grenze_Kellerwald_kml' in Layer
[Tue, 09 Dec 2014 08:02:28 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] [info] Reported errored part to api-core
[Tue, 09 Dec 2014 08:02:28 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] [info] Cleaned up original file
[Tue, 09 Dec 2014 08:02:28 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] Service exit code 0
[Tue, 09 Dec 2014 08:02:28 GMT] [ddd51a1b-1bc4-4666-83b5-d1b65c457cc8] Deleted message from the queue

This replace function was used initially due to rasters not displaying and not returning tiles from the getTile function via tilelive-bridge, unless the raster's layername no longer contained the .

I tested a few tifs without the replace function, and both tilelive-omnivore and getTile() were working fine. The initial raster tested that triggered using the replace function might've been a edge case. @rclark do you remember what tif file that was? We can use it as a test-case.

GretaCB commented 9 years ago

Merged https://github.com/mapbox/tilelive-omnivore/pull/3