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

shp2geobuf fails with shapefile containing one feature #36

Open
artemp opened this issue Jan 30, 2015 · 0 comments
Open

shp2geobuf fails with shapefile containing one feature #36

artemp opened this issue Jan 30, 2015 · 0 comments

Comments

@artemp
Copy link

artemp commented Jan 30, 2015

shp2geobuf data/polygon.shp > data/polygon.geobuf

/Users/artem/Projects/mapbox/geobuf/encode.js:50
    if (obj.type === 'FeatureCollection') {
           ^
TypeError: Cannot read property 'type' of undefined
    at analyze (/Users/artem/Projects/mapbox/geobuf/encode.js:50:12)
    at encode (/Users/artem/Projects/mapbox/geobuf/encode.js:26:5)
    at /Users/artem/Projects/mapbox/geobuf/bin/shp2geobuf:8:26
    at /Users/artem/Projects/mapbox/geobuf/node_modules/shapefile/index.js:14:23
    at /Users/artem/Projects/mapbox/geobuf/node_modules/shapefile/read.js:26:29
    at notify (/Users/artem/Projects/mapbox/geobuf/node_modules/shapefile/node_modules/queue-async/queue.js:45:26)
    at /Users/artem/Projects/mapbox/geobuf/node_modules/shapefile/node_modules/queue-async/queue.js:35:11
    at /Users/artem/Projects/mapbox/geobuf/node_modules/shapefile/read.js:17:33
    at /Users/artem/Projects/mapbox/geobuf/node_modules/shapefile/index.js:70:27
    at readRecordHeader (/Users/artem/Projects/mapbox/geobuf/node_modules/shapefile/shp.js:34:40)
@mourner mourner added the bug label May 8, 2015
@mourner mourner added the ready label Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants