S3 details for geovctrs_segment

new_geovctrs_segment(
  x = list(x0 = double(), y0 = double(), x1 = double(), y1 = double(), srid =
    integer())
)

is_geovctrs_segment(x)

validate_geovctrs_segment(x)

as_geo_segment(x, ...)

# S3 method for default
as_geo_segment(x, ...)

# S3 method for geovctrs_segment
vec_cast(x, to, ...)

# S3 method for geovctrs_segment
vec_ptype2(x, y, ...)

Arguments

x

A (possibly) geo_segment()

...

Unused

to

Arguments to vctrs::vec_cast() and vctrs::vec_ptype2()

y

Arguments to vctrs::vec_cast() and vctrs::vec_ptype2()