{"action":"created","issue":{"url":"https://api.github.com/repos/ngageoint/geopackage-js/issues/103","repository_url":"https://api.github.com/repos/ngageoint/geopackage-js","labels_url":"https://api.github.com/repos/ngageoint/geopackage-js/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/ngageoint/geopackage-js/issues/103/comments","events_url":"https://api.github.com/repos/ngageoint/geopackage-js/issues/103/events","html_url":"https://github.com/ngageoint/geopackage-js/issues/103","id":302311212,"number":103,"title":"geoPackage error: \"proj4.defs is not a function\" ","user":{"login":"sveta-wl","id":10789303,"avatar_url":"https://avatars0.githubusercontent.com/u/10789303?v=4","gravatar_id":"","url":"https://api.github.com/users/sveta-wl","html_url":"https://github.com/sveta-wl","followers_url":"https://api.github.com/users/sveta-wl/followers","following_url":"https://api.github.com/users/sveta-wl/following{/other_user}","gists_url":"https://api.github.com/users/sveta-wl/gists{/gist_id}","starred_url":"https://api.github.com/users/sveta-wl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sveta-wl/subscriptions","organizations_url":"https://api.github.com/users/sveta-wl/orgs","repos_url":"https://api.github.com/users/sveta-wl/repos","events_url":"https://api.github.com/users/sveta-wl/events{/privacy}","received_events_url":"https://api.github.com/users/sveta-wl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-03-05T14:03:00Z","updated_at":"2018-03-12T23:34:57Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\n\r\nthe following problem occurs using geoPackage and proj4 ^2.4.3: \r\nsince this [commit](https://github.com/proj4js/proj4js/commit/d18e1bae03444ed7440414485e394203a621e148#diff-834d669ccb67857491158d035de02879) (the file lib/defs.js line 55) has been published by Proj4-team the geoPackage fails by initialization on following [line](https://github.com/ngageoint/geopackage-js/blob/master/lib/geoPackage.js#L39). It seams, that now the correct way of calling `proj4.defs ` at this point is `proj4.default.defs(name, defs[name]);` otherwise it throws the error \"proj4.defs is not a function\". \r\n\r\nCould this issue be fixed or any workaround be suggested? \r\nThank you for help! "},"comment":{"url":"https://api.github.com/repos/ngageoint/geopackage-js/issues/comments/372497423","html_url":"https://github.com/ngageoint/geopackage-js/issues/103#issuecomment-372497423","issue_url":"https://api.github.com/repos/ngageoint/geopackage-js/issues/103","id":372497423,"user":{"login":"taviroquai","id":498409,"avatar_url":"https://avatars1.githubusercontent.com/u/498409?v=4","gravatar_id":"","url":"https://api.github.com/users/taviroquai","html_url":"https://github.com/taviroquai","followers_url":"https://api.github.com/users/taviroquai/followers","following_url":"https://api.github.com/users/taviroquai/following{/other_user}","gists_url":"https://api.github.com/users/taviroquai/gists{/gist_id}","starred_url":"https://api.github.com/users/taviroquai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taviroquai/subscriptions","organizations_url":"https://api.github.com/users/taviroquai/orgs","repos_url":"https://api.github.com/users/taviroquai/repos","events_url":"https://api.github.com/users/taviroquai/events{/privacy}","received_events_url":"https://api.github.com/users/taviroquai/received_events","type":"User","site_admin":false},"created_at":"2018-03-12T23:34:57Z","updated_at":"2018-03-12T23:34:57Z","author_association":"NONE","body":"> I was just saying, what happens if a GeoPackage that I get from an external source, specifies a projection like EPSG:32628 for example. How would that projection get loaded in order to present that data on the map to the user?\r\n\r\nThat's what I was suggesting, using addProjection API, like this:\r\n```\r\nvar g = new GeoPackage();\r\ng.addProjection('EPSG:32628', '+proj=utm +zone=28 +datum=WGS84 +units=m +no_defs ');\r\n// Ready to use 32628\r\n```"}}
{"actor":{"display_login":"taviroquai"}}