{"action":"created","issue":{"url":"https://api.github.com/repos/r-spatial/sf/issues/920","repository_url":"https://api.github.com/repos/r-spatial/sf","labels_url":"https://api.github.com/repos/r-spatial/sf/issues/920/labels{/name}","comments_url":"https://api.github.com/repos/r-spatial/sf/issues/920/comments","events_url":"https://api.github.com/repos/r-spatial/sf/issues/920/events","html_url":"https://github.com/r-spatial/sf/issues/920","id":390631702,"node_id":"MDU6SXNzdWUzOTA2MzE3MDI=","number":920,"title":"st_read fails with geometry_column argument","user":{"login":"dmkaplan2000","id":584741,"node_id":"MDQ6VXNlcjU4NDc0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/584741?v=4","gravatar_id":"","url":"https://api.github.com/users/dmkaplan2000","html_url":"https://github.com/dmkaplan2000","followers_url":"https://api.github.com/users/dmkaplan2000/followers","following_url":"https://api.github.com/users/dmkaplan2000/following{/other_user}","gists_url":"https://api.github.com/users/dmkaplan2000/gists{/gist_id}","starred_url":"https://api.github.com/users/dmkaplan2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmkaplan2000/subscriptions","organizations_url":"https://api.github.com/users/dmkaplan2000/orgs","repos_url":"https://api.github.com/users/dmkaplan2000/repos","events_url":"https://api.github.com/users/dmkaplan2000/events{/privacy}","received_events_url":"https://api.github.com/users/dmkaplan2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-13T11:16:46Z","updated_at":"2018-12-13T11:47:35Z","closed_at":null,"author_association":"NONE","body":"I just tried something along these lines:\r\n\r\nst_read(psqlcon,query=\"SELECT fid, geom1, geom2 FROM mygeomtable\",geometry_column=\"geom2\")\r\n\r\nand it fails stating:\r\n\r\nError: Unused arguments:  geometry_column = geom2\r\nCheck arguments for `st_sf()` for details.\r\n\r\nUsing sf_column_name instead of geometry_column allows the function to work, but does not appear to do what one expects and is undocumented."},"comment":{"url":"https://api.github.com/repos/r-spatial/sf/issues/comments/446940704","html_url":"https://github.com/r-spatial/sf/issues/920#issuecomment-446940704","issue_url":"https://api.github.com/repos/r-spatial/sf/issues/920","id":446940704,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Njk0MDcwNA==","user":{"login":"dmkaplan2000","id":584741,"node_id":"MDQ6VXNlcjU4NDc0MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/584741?v=4","gravatar_id":"","url":"https://api.github.com/users/dmkaplan2000","html_url":"https://github.com/dmkaplan2000","followers_url":"https://api.github.com/users/dmkaplan2000/followers","following_url":"https://api.github.com/users/dmkaplan2000/following{/other_user}","gists_url":"https://api.github.com/users/dmkaplan2000/gists{/gist_id}","starred_url":"https://api.github.com/users/dmkaplan2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmkaplan2000/subscriptions","organizations_url":"https://api.github.com/users/dmkaplan2000/orgs","repos_url":"https://api.github.com/users/dmkaplan2000/repos","events_url":"https://api.github.com/users/dmkaplan2000/events{/privacy}","received_events_url":"https://api.github.com/users/dmkaplan2000/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T11:47:35Z","updated_at":"2018-12-13T11:47:35Z","author_association":"NONE","body":"I think I understand the problem. When loading a layer over a DBI connection, all geometry columns are converted to sf format, so there is no particular need to specify the geometry_column argument. If this is the case, then st_read should probably fail with a better error message if geometry_column is given for a DBI connection, and the documentation for st_read should either be modified to make clear which arguments are valid for which methods or split into multiple pages, one per method. "}}
{"actor":{"display_login":"dmkaplan2000"}}