{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/shp-write/issues/21","labels_url":"https://api.github.com/repos/mapbox/shp-write/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/shp-write/issues/21/comments","events_url":"https://api.github.com/repos/mapbox/shp-write/issues/21/events","html_url":"https://github.com/mapbox/shp-write/issues/21","id":81736951,"number":21,"title":"Poly Write","user":{"login":"sainsb","id":1097798,"avatar_url":"https://avatars.githubusercontent.com/u/1097798?v=3","gravatar_id":"","url":"https://api.github.com/users/sainsb","html_url":"https://github.com/sainsb","followers_url":"https://api.github.com/users/sainsb/followers","following_url":"https://api.github.com/users/sainsb/following{/other_user}","gists_url":"https://api.github.com/users/sainsb/gists{/gist_id}","starred_url":"https://api.github.com/users/sainsb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sainsb/subscriptions","organizations_url":"https://api.github.com/users/sainsb/orgs","repos_url":"https://api.github.com/users/sainsb/repos","events_url":"https://api.github.com/users/sainsb/events{/privacy}","received_events_url":"https://api.github.com/users/sainsb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T03:25:51Z","updated_at":"2015-08-07T14:09:00Z","closed_at":"2015-08-07T14:09:00Z","body":"Rather than issue a pull request, I'm logging this as an issue. with a solution.\r\n\r\nhttps://github.com/mapbox/shp-write/blob/master/src/poly.js#L43\r\n`shpI += contentLength;`\r\n\r\nshould be:\r\n\r\n`shpI += contentLength +8;`\r\n\r\nNote that this affects GeoJSON.io as well.  Multiple polygons to shapefile == fail until this fix is implemented.\r\n\r\nOh Yeah, this one too:\r\nhttps://github.com/mapbox/shp-write/blob/master/src/poly.js#L25\r\n\r\n`shxOffset += contentLength;`\r\n\r\nshould be:\r\n\r\n`shxOffset += contentLength+8;`\r\n\r\nmany Bothans died ...."},"comment":{"url":"https://api.github.com/repos/mapbox/shp-write/issues/comments/128710055","html_url":"https://github.com/mapbox/shp-write/issues/21#issuecomment-128710055","issue_url":"https://api.github.com/repos/mapbox/shp-write/issues/21","id":128710055,"user":{"login":"tmcw","id":32314,"avatar_url":"https://avatars.githubusercontent.com/u/32314?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcw","html_url":"https://github.com/tmcw","followers_url":"https://api.github.com/users/tmcw/followers","following_url":"https://api.github.com/users/tmcw/following{/other_user}","gists_url":"https://api.github.com/users/tmcw/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcw/subscriptions","organizations_url":"https://api.github.com/users/tmcw/orgs","repos_url":"https://api.github.com/users/tmcw/repos","events_url":"https://api.github.com/users/tmcw/events{/privacy}","received_events_url":"https://api.github.com/users/tmcw/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T14:09:00Z","updated_at":"2015-08-07T14:09:00Z","body":"Fixed in #23"}}