Skip to content
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

Multiple geometry columns #25

Open
SymbolixAU opened this issue Jul 28, 2018 · 0 comments
Open

Multiple geometry columns #25

SymbolixAU opened this issue Jul 28, 2018 · 0 comments
Milestone

Comments

@SymbolixAU
Copy link
Collaborator

SymbolixAU commented Jul 28, 2018

library(sf)
sf <- st_sf(a = c("x", "y"), geom = st_sfc(st_point(3:4), st_point(3:4)))
sf[["geom2"]] = st_sfc(st_point(3:4), st_point(3:4))
sf
Simple feature collection with 2 features and 1 field
Active geometry column: geom
geometry type:  POINT
dimension:      XY
bbox:           xmin: 3 ymin: 4 xmax: 3 ymax: 4
epsg (SRID):    NA
proj4string:    NA
  a        geom       geom2
1 x POINT (3 4) POINT (3 4)
2 y POINT (3 4) POINT (3 4)

should encode.sf apply to multiple columns?

sfGeometryColumn.sf <- function(sf) names( which( sapply( sf, function(x) inherits(x, "sfc") ) ) )
@SymbolixAU SymbolixAU self-assigned this Jul 28, 2018
@SymbolixAU SymbolixAU added this to the v0.7.2 milestone Nov 7, 2018
@SymbolixAU SymbolixAU modified the milestones: v0.7.2, v0.7.3 Nov 23, 2018
@SymbolixAU SymbolixAU removed their assignment Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants