ATFutures / geoplumber

Serve geographic data from R and consume with scalable front end.
https://atfutures.github.io/geoplumber/
59 stars 7 forks source link

geojsonsf failing on Date column #52

Closed layik closed 5 years ago

layik commented 5 years ago

reporting to upstream

gjio <- geojsonio::geojson_json(geoplumber::traffic_casualties_2014[1:2,])
gjsf <- geojsonsf::sf_geojson(geoplumber::traffic_casualties_2014[1:2,])
print(gjio)
#> <FeatureCollection> 
#>   type:  FeatureCollection 
#>   no. features:  2 
#>   features (1st 5):  Point, Point
print(gjsf)
#> [1] "{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"Accident_Severity\":\"Slight\",\"Date\":2014-05-18},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.088153,51.506886]}},{\"type\":\"Feature\",\"properties\":{\"Accident_Severity\":\"Slight\",\"Date\":2014-09-15},\"geometry\":{\"type\":\"Point\",\"coordinates\":[-0.077685,51.502218]}}]}"

Created on 2018-10-16 by the reprex package (v0.2.0).

layik commented 5 years ago

Decided to leave this as it is and wait for the update propagating.