Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wkt_has_missing

Test well-known geometries for missing and non-finite coordinates


Description

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

Usage

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)")
wkt_has_missing("POINT (nan nan)")
wkt_has_missing("POINT (inf inf)")

wkt_is_finite("POINT (0 1)")
wkt_is_finite("POINT (nan nan)")
wkt_is_finite("POINT (inf inf)")

wkutils

Utilities for Well-Known Geometry Vectors

v0.1.1
MIT + file LICENSE
Authors
Dewey Dunnington [aut, cre] (<https://orcid.org/0000-0002-9415-4582>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.