{"action":"created","issue":{"url":"https://api.github.com/repos/Toblerity/Fiona/issues/691","repository_url":"https://api.github.com/repos/Toblerity/Fiona","labels_url":"https://api.github.com/repos/Toblerity/Fiona/issues/691/labels{/name}","comments_url":"https://api.github.com/repos/Toblerity/Fiona/issues/691/comments","events_url":"https://api.github.com/repos/Toblerity/Fiona/issues/691/events","html_url":"https://github.com/Toblerity/Fiona/issues/691","id":388207538,"node_id":"MDU6SXNzdWUzODgyMDc1Mzg=","number":691,"title":"Unsuccessful geometry transformation should error, not return untransformed geometry","user":{"login":"kannes","id":7661092,"node_id":"MDQ6VXNlcjc2NjEwOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/7661092?v=4","gravatar_id":"","url":"https://api.github.com/users/kannes","html_url":"https://github.com/kannes","followers_url":"https://api.github.com/users/kannes/followers","following_url":"https://api.github.com/users/kannes/following{/other_user}","gists_url":"https://api.github.com/users/kannes/gists{/gist_id}","starred_url":"https://api.github.com/users/kannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kannes/subscriptions","organizations_url":"https://api.github.com/users/kannes/orgs","repos_url":"https://api.github.com/users/kannes/repos","events_url":"https://api.github.com/users/kannes/events{/privacy}","received_events_url":"https://api.github.com/users/kannes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T13:11:28Z","updated_at":"2018-12-06T13:19:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Due to software being complicated, it is easy for people to end up with a mess of GDAL and PROJ and what-not paths not matching. If that happens, coordinate transformations will fail due to gdal(?) throwing errors like\r\n\r\n```\r\nERROR 4: Unable to open EPSG support file gcs.csv.  Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.\r\nERROR 6: No translation for an empty SRS to PROJ.4 format is known.\r\n```\r\n\r\nFiona does not treat those errors as more than messages (I assume they are printed by gdal, not Fiona). It will not fail and raise an exception but return the original geometry instead.\r\n\r\n```\r\nIn [1]: from fiona.crs import from_epsg                                         \r\n\r\nIn [2]: from fiona.transform import transform_geom                              \r\n\r\nIn [3]: p = {'type': 'Point', 'coordinates': (10, 53.5)}                        \r\n\r\nIn [4]: transform_geom(from_epsg(4326), from_epsg(25832), p)                    \r\nERROR 4: Unable to open EPSG support file gcs.csv.  Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.\r\nERROR 4: Unable to open EPSG support file gcs.csv.  Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.\r\nERROR 6: No translation for an empty SRS to PROJ.4 format is known.\r\nOut[7]: {'type': 'Point', 'coordinates': (10.0, 53.5)}\r\n```\r\n\r\nIn a notebook this might look like this:\r\n\r\n```\r\nfrom fiona.crs import from_epsg                                         \r\nfrom fiona.transform import transform_geom                              \r\np = {'type': 'Point', 'coordinates': (10, 53.5)}                        \r\ntransformed_p = transform_geom(from_epsg(4326), from_epsg(25832), p)\r\nprint(transformed_p)\r\n```\r\nprinting\r\n\r\n> {'type': 'Point', 'coordinates': (10.0, 53.5)}\r\n\r\nThis is very bad and bound to lead to silent bugs since the error messages might not even be visible to the user (e.g. in a Jupyter Notebook they print to the shell where the notebook was launched).\r\n\r\nIf there is any way for Fiona to know about the issue, please raise an Exception!"},"comment":{"url":"https://api.github.com/repos/Toblerity/Fiona/issues/comments/444867910","html_url":"https://github.com/Toblerity/Fiona/issues/691#issuecomment-444867910","issue_url":"https://api.github.com/repos/Toblerity/Fiona/issues/691","id":444867910,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDg2NzkxMA==","user":{"login":"kannes","id":7661092,"node_id":"MDQ6VXNlcjc2NjEwOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/7661092?v=4","gravatar_id":"","url":"https://api.github.com/users/kannes","html_url":"https://github.com/kannes","followers_url":"https://api.github.com/users/kannes/followers","following_url":"https://api.github.com/users/kannes/following{/other_user}","gists_url":"https://api.github.com/users/kannes/gists{/gist_id}","starred_url":"https://api.github.com/users/kannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kannes/subscriptions","organizations_url":"https://api.github.com/users/kannes/orgs","repos_url":"https://api.github.com/users/kannes/repos","events_url":"https://api.github.com/users/kannes/events{/privacy}","received_events_url":"https://api.github.com/users/kannes/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T13:19:25Z","updated_at":"2018-12-06T13:19:25Z","author_association":"CONTRIBUTOR","body":"No idea how Github handles notification but I submitted the issue too early and only added the content now. Posting this comment to notify about that. ;)"}}
{"actor":{"display_login":"kannes"}}