Issue 103 - geojson_sf() with mixed logicals#104
Conversation
|
Thanks @ateucher, looks good to me! Could you add (if you want to) a contributor role in the Description for yourself? |
|
Great, thanks! Will do! |
|
@dcooley do you want me to update the GitHub Actions workflows? They're not running as they use old unsupported workflows. I think r-lib/check-standard should be sufficient... |
geojson_sf() with mixed logicalsgeojson_sf() with mixed logicals
|
Hi @dcooley just a little nudge on my question... |
|
sorry, am away on holiday; yes if you could get the actions working again that would be great |
|
Ah, my apologies! Will do :) |
|
I made some updates to the I guess before this could be released to CRAN, |
|
excellent, thanks for those changes. Yes I'll update the other packages hopefully in the next couple of days. Then all should be good to go for CRAN |
This is an attempt to fix #103.
In
get_property_types(),property_type("True" or "False") essentially just reflects which boolean value was encountered first, but subsequent features can have a different type, so thattypefor a feature can be different fromproperty_typefor that property. Before, if a property had different types across features, it was immediately converted to "String". I added logic to recognize that"True"and"False"are the same logical type.In
fill_property_vectors(), it now allows bothtrueandfalsevalues to be stored in the logical vector, regardless of whether the detected type was labeled as "True" or "False".I added some new tests, which now pass (failed before), but definitely warrants checking my logic!