Options for reading in GeoJSON
'sf' or 'sfc'
What is the most general container type to use when
properties differ across a FEATURECOLLECTION? E.g. if the property
exists both as a numeric and a string, should all values be promoted
to a 'string', or contained as different types in a 'list'.
Default: 'string' will behave like geojsonsf
package.
when property_promotion = "string"
should logical values become words (i.e. "TRUE"
/"FALSE"
)
or integers (i.e. "1"
/"0"
).
Default: "integer" in order to match geojsonsf
package
Named list of options specific to reading GeoJSON
# Create a set of options to use when reading geojson
opts_read_geojson()
#> $type
#> [1] "sf"
#>
#> $property_promotion
#> [1] "string"
#>
#> $property_promotion_lgl
#> [1] "integer"
#>
#> attr(,"class")
#> [1] "opts_read_geojson"