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

Running estimate ends in error: TypeError: Cannot read property '1' of undefined #15

Open
Rennzie opened this issue Feb 24, 2021 · 0 comments

Comments

@Rennzie
Copy link

Rennzie commented Feb 24, 2021

I'm following the documentation to create my first tileset.

I've successfully run: mtsds --config path-to-geojson and got the expected config, recipe and .jsonl files.

I get this error when running mtsds --estimate as documented:

Estimating job size... this could take a while depending on your max zoom
TypeError: Cannot read property '1' of undefined
    at lineCover (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:231:30)
    at polygonCover (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:154:9)
    at getTiles (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:79:9)
    at Proxy.exports.indexes (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:53:12)
    at DestroyableTransform.<anonymous> (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/src/estimate.js:59:27)
    at DestroyableTransform.emit (events.js:223:5)
    at DestroyableTransform.EventEmitter.emit (domain.js:475:20)
    at addChunk (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/readable-stream/lib/_stream_readable.js:291:12)
    at readableAddChunk (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/readable-stream/lib/_stream_readable.js:278:11)
    at DestroyableTransform.Readable.push (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/readable-stream/lib/_stream_readable.js:245:10)

I'm happy to help debug further but not sure where to go from here?

If I run mtsds --sync it works as expected.

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

No branches or pull requests

1 participant