-
Notifications
You must be signed in to change notification settings - Fork 292
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
st_as_sfc.pq_geometry #1195
Comments
Makes sense (@etiennebr ?) - doesn't it make more sense to use #' @export
sf_as_sfc.pq_geometry <- function(x, ..., EWKB = TRUE, spatialite = FALSE, pureR = FALSE, crs = NA_crs_) {
st_as_sfc.WKB(x, ..., EWKB = EWKB, spatiallite = spatialite, pureR = pureR, crs = crs)
} or is the column guaranteed to be EWKB? |
@edzer sorry yes, that makes more sense. I missed setting the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a table is read from a postgis database as a regular data.frame using
RPostgres::dbGetQuery
the geometry column is returned as classpq_geometry
.This can be converted to
sfc
byCan we have a
sf_as_sfc.pq_geometry
method which does this automatically as part ofsf
?For example
The text was updated successfully, but these errors were encountered: