SymbolixAU / geojsonsf

Conversion between sf and geojson
Other
82 stars 7 forks source link

allow null geometries in Feature objects #11

Closed SymbolixAU closed 6 years ago

SymbolixAU commented 6 years ago

e.g

url <- "https://data.seattle.gov/resource/pdbw-sw7q.geojson"

a null geometry should parse

js <- '{"type":"FeatureCollection","features":[
{"type":"Feature","properties":{"id":1},"geometry":{"type":"Point","coordinates":[0,0]}},
{"type":"Feature","properties":{"id":2},"geometry":null}
]}'

Needs to work for geojson_wkt too.

SymbolixAU commented 6 years ago

related: https://github.com/r-spatial/sf/issues/728