{"action":"created","issue":{"url":"https://api.github.com/repos/osmcode/node-osmium/issues/81","repository_url":"https://api.github.com/repos/osmcode/node-osmium","labels_url":"https://api.github.com/repos/osmcode/node-osmium/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/osmcode/node-osmium/issues/81/comments","events_url":"https://api.github.com/repos/osmcode/node-osmium/issues/81/events","html_url":"https://github.com/osmcode/node-osmium/issues/81","id":158710461,"number":81,"title":"Array and disk LocationHandlers","user":{"login":"ajashton","id":126952,"avatar_url":"https://avatars.githubusercontent.com/u/126952?v=3","gravatar_id":"","url":"https://api.github.com/users/ajashton","html_url":"https://github.com/ajashton","followers_url":"https://api.github.com/users/ajashton/followers","following_url":"https://api.github.com/users/ajashton/following{/other_user}","gists_url":"https://api.github.com/users/ajashton/gists{/gist_id}","starred_url":"https://api.github.com/users/ajashton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajashton/subscriptions","organizations_url":"https://api.github.com/users/ajashton/orgs","repos_url":"https://api.github.com/users/ajashton/repos","events_url":"https://api.github.com/users/ajashton/events{/privacy}","received_events_url":"https://api.github.com/users/ajashton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T15:47:38Z","updated_at":"2016-06-06T18:48:45Z","closed_at":null,"body":"@joto I'm trying to use node-osmium with either the array or disk LocationHandler option but I'm getting this for both of them:\r\n\r\n```\r\nvar location_handler = new osmium.LocationHandler(\"array\");\r\n                       ^\r\nTypeError: Support for map type 'array' not compiled into this binary.\r\n    at Object.<anonymous> (/home/aj/Code/osm-databot/bin/builtup/import.js:35:24)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n    at node.js:945:3\r\n```\r\n\r\nI've tried both the version from NPM and compiling my own version. How can I enable these features when compiling node-osmium myself? Would it be possible to get them in the NPM binary?"},"comment":{"url":"https://api.github.com/repos/osmcode/node-osmium/issues/comments/224051478","html_url":"https://github.com/osmcode/node-osmium/issues/81#issuecomment-224051478","issue_url":"https://api.github.com/repos/osmcode/node-osmium/issues/81","id":224051478,"user":{"login":"joto","id":113756,"avatar_url":"https://avatars.githubusercontent.com/u/113756?v=3","gravatar_id":"","url":"https://api.github.com/users/joto","html_url":"https://github.com/joto","followers_url":"https://api.github.com/users/joto/followers","following_url":"https://api.github.com/users/joto/following{/other_user}","gists_url":"https://api.github.com/users/joto/gists{/gist_id}","starred_url":"https://api.github.com/users/joto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joto/subscriptions","organizations_url":"https://api.github.com/users/joto/orgs","repos_url":"https://api.github.com/users/joto/repos","events_url":"https://api.github.com/users/joto/events{/privacy}","received_events_url":"https://api.github.com/users/joto/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T18:48:45Z","updated_at":"2016-06-06T18:48:45Z","body":"There is no `array` location handler. Usually you have `sparse_mem_array` and `sparse_mmap_array` available for small files and `dense_mem_array` and `dense_mmap_array` for full planet or large extracts. On Linux use the `*_mmap_*` version, on OSX the `*_mem_*` version. Use `*_file_array` instead if you don't have enough main memory. You'll need over 32GB for `dense` arrays these days. More details here: http://docs.osmcode.org/osmium-concepts-manual/#indexes\r\n\r\nThe naming of those index types changed at some point, but that was a long time ago."}}
{"actor":{"display_login":"joto"}}