Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updates #32
dates #32
Comments
|
re-opening until #27 is fixed |
|
Speed improved in #33 |
sf <- sf::st_sf( geom = sf::st_sfc(sf::st_point(c(1,1))) )
sf$date <- as.POSIXct("2018-01-01 01:01:02")
geo <- sf_geojson(sf)
geo
# [1] "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"date\":\"2018-01-# 01 01:01:02\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[1.0,1.0]}}]}"
# attr(,"class")
# [1] "json"
jsonify::validate_json(geo)
# [1] TRUE |
I thought I caught these, but I guess not...