Note that EMTPY geometries are considered finite and non-missing. Use the size column of wkt_meta() to test for empty geometries.

wkt_has_missing(wkt)

wkb_has_missing(wkb)

wkt_is_finite(wkt)

wkb_is_finite(wkb)

Arguments

wkt

A character vector containing well-known text.

wkb

A list() of raw() vectors, such as that returned by sf::st_as_binary().

Value

A logical vector with the same length as the input.

Examples

wkt_has_missing("POINT (0 1)")
#> [1] FALSE
wkt_has_missing("POINT (nan nan)")
#> [1] TRUE
wkt_has_missing("POINT (inf inf)")
#> [1] FALSE

wkt_is_finite("POINT (0 1)")
#> [1] TRUE
wkt_is_finite("POINT (nan nan)")
#> [1] FALSE
wkt_is_finite("POINT (inf inf)")
#> [1] FALSE