{"action":"created","issue":{"url":"https://api.github.com/repos/inasafe/inasafe/issues/5013","repository_url":"https://api.github.com/repos/inasafe/inasafe","labels_url":"https://api.github.com/repos/inasafe/inasafe/issues/5013/labels{/name}","comments_url":"https://api.github.com/repos/inasafe/inasafe/issues/5013/comments","events_url":"https://api.github.com/repos/inasafe/inasafe/issues/5013/events","html_url":"https://github.com/inasafe/inasafe/issues/5013","id":336426856,"node_id":"MDU6SXNzdWUzMzY0MjY4NTY=","number":5013,"title":"Several CRS prompts after analysis if input shapefile CRS is missing","user":{"login":"olivierdalang","id":1894106,"node_id":"MDQ6VXNlcjE4OTQxMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/1894106?v=4","gravatar_id":"","url":"https://api.github.com/users/olivierdalang","html_url":"https://github.com/olivierdalang","followers_url":"https://api.github.com/users/olivierdalang/followers","following_url":"https://api.github.com/users/olivierdalang/following{/other_user}","gists_url":"https://api.github.com/users/olivierdalang/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierdalang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierdalang/subscriptions","organizations_url":"https://api.github.com/users/olivierdalang/orgs","repos_url":"https://api.github.com/users/olivierdalang/repos","events_url":"https://api.github.com/users/olivierdalang/events{/privacy}","received_events_url":"https://api.github.com/users/olivierdalang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T23:53:33Z","updated_at":"2018-06-28T01:11:05Z","closed_at":null,"author_association":"NONE","body":"### Problem\r\n\r\nWhen using an assets layer with missing CRS information, the user gets prompter 6 times for CRS when InaSAFE loads the results in QGIS.\r\n\r\nThe case happens with shapefile missing the .prj and .qpj files. I didn't test with other sources with missing CRS information.\r\n\r\n### Expected Behaviour\r\n\r\nInaSAFE should use the CRS information defined in QGIS rather than rely on the source file to have a CRS.\r\n\r\n### Environment\r\n* InaSAFE : 5.0 alpha\r\n* QGIS : 3.3 (Nightly)\r\n* OS : Windows 10\r\n* Data used :\r\n  * Exposure : in zip file below\r\n  * Hazard : in zip file below\r\n  * Aggregation : -\r\n  * Extent : -\r\n  \r\nChecklist: <!--- if applicable -->\r\n<!---\r\nReplace the space between square brackets by a `x` to make it checked.\r\nBy running the analysis in debug mode, you may have some different errors.\r\n-->\r\n* [x] Did you try to run it in debug mode ?\r\n* [x] Is the data available ?\r\n  * https://www.dropbox.com/s/qmrvsgarhsj3y20/MissingCRS_prompts.zip?dl=0 (will take some time to upload, but basically, take any shapefile and remove .prj and .qpj)\r\n\r\n### Proposed Solution\r\n\r\nUse QGIS's layer CRS instead of relying on the data's CRS information."},"comment":{"url":"https://api.github.com/repos/inasafe/inasafe/issues/comments/400878880","html_url":"https://github.com/inasafe/inasafe/issues/5013#issuecomment-400878880","issue_url":"https://api.github.com/repos/inasafe/inasafe/issues/5013","id":400878880,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDg3ODg4MA==","user":{"login":"olivierdalang","id":1894106,"node_id":"MDQ6VXNlcjE4OTQxMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/1894106?v=4","gravatar_id":"","url":"https://api.github.com/users/olivierdalang","html_url":"https://github.com/olivierdalang","followers_url":"https://api.github.com/users/olivierdalang/followers","following_url":"https://api.github.com/users/olivierdalang/following{/other_user}","gists_url":"https://api.github.com/users/olivierdalang/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierdalang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierdalang/subscriptions","organizations_url":"https://api.github.com/users/olivierdalang/orgs","repos_url":"https://api.github.com/users/olivierdalang/repos","events_url":"https://api.github.com/users/olivierdalang/events{/privacy}","received_events_url":"https://api.github.com/users/olivierdalang/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T01:11:05Z","updated_at":"2018-06-28T01:11:05Z","author_association":"NONE","body":"> You already created a previous ticket on QGIS 2.18 with InaSAFE 4 in #5003.\r\n\r\nOops :-) I had completely forgotten... Sorry for that.\r\n\r\nI get :\r\n```\r\n>>> iface.activeLayer().crs().authid()\r\n'EPSG:4326'\r\n```"}}
{"actor":{"display_login":"olivierdalang"}}