error on restart #1

Open
NHQ opened this Issue Mar 7, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@NHQ

NHQ commented Mar 7, 2014

Situation: I run a program to fill up a level-geo with data. Seems to test fine.
Code here: https://gist.github.com/NHQ/9421966
Then, when I restart the same program, I get the following error immediately:

TypeError: Cannot read property 'length' of undefined
    at insertSubtree (/Users/johnny/projects/mapper/node_modules/level-geo/node_modules/rtree/dist/rtree.js:334:16)
    at Object.geoJSON.point (/Users/johnny/projects/mapper/node_modules/level-geo/node_modules/rtree/dist/rtree.js:538:10)
    at geoJSON (/Users/johnny/projects/mapper/node_modules/level-geo/node_modules/rtree/dist/rtree.js:615:15)
    at /Users/johnny/projects/mapper/node_modules/level-geo/index.js:40:15
    at /Users/johnny/projects/mapper/node_modules/level-geo/lib/geo-utils.js:26:5
    at Object.GeoJSON.parse (/Users/johnny/projects/mapper/node_modules/level-geo/node_modules/geojson/geojson.js:27:7)
    at Object.exports.getGeoJSON (/Users/johnny/projects/mapper/node_modules/level-geo/lib/geo-utils.js:25:11)
    at SubDB.db.put (/Users/johnny/projects/mapper/node_modules/level-geo/index.js:39:16)
    at null.<anonymous> (/Users/johnny/projects/mapper/index.js:22:6)
    at EventEmitter.emit (events.js:95:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment