-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polygon/multipolygon columns: incorrect write, correct read #439
Comments
This only concerns the However, this is partly caused by RPostgres/R/dbWriteTable_PqConnection_character_data.frame.R Lines 24 to 26 in 58a052b
This also happens when the table does not (yet) exist, i.e. when there is nothing to Do you think it would be possible to move this check a few lines down and only
Right now, dbWriteTable will create the table anyway if no RPostgres/R/dbWriteTable_PqConnection_character_data.frame.R Lines 60 to 63 in 58a052b
The downside is that Of course, third-party methods have to provide custom field.types for their datatypes, like sfc, so |
Thanks, missed that. IIUC, we can fix this by fixing |
Yes. But the fix is a bit ugly (IMO, i.e. overriding function arguments). IMHO it would be best, i.e. cleanest, if |
There are new generics |
Ha, I just had a similar thought, i.e. refactor So no, sf does not support/use them yet. Anyway, I am not convinced by my "create table if append = TRUE" proposal above myself anymore, so this can be closed IMO. |
Fixed in {sf}: r-spatial/sf#2223 |
Closing, fixed downstream. Thanks @dpprdan! |
Incorrect write
If we open a regular DBI connection, as in the next example, we won't correctly write to Postgres with Postgis correctly configured.
Correct read
Here's my session info:
The text was updated successfully, but these errors were encountered: