Create and convert geometry vectors

is_geovctr() as_geovctr() restore_geovctr() expect_geovctr()

Test for geovctrs

geo_xy() geo_xyz()

Create a coordinate vector

geo_rect()

Rectangles

geo_segment()

Line segments

reexports

Objects exported from other packages

geo_collection() geo_point() geo_linestring() geo_polygon() geo_multipoint() geo_multilinestring() geo_multipolygon()

Geometry constructors

Geometry operators

Functions that take geometry vectors as input

geo_bbox() geo_x_range() geo_y_range() geo_envelope() geo_x_envelope() geo_y_envelope()

Bounding boxes and envelopes

geo_srid() geo_set_srid() as_geo_srid()

Extract a spatial reference identifier

geo_is_missing() geo_has_missing() geo_is_finite() geo_is_empty() NA_wkt_ NA_wkb_ NA_collection_ NA_xy_ NA_segment_ NA_rect_

Missing, empty, and non-finite geometries

geo_set_z() geo_drop_z() geo_has_z() geo_z_range() geo_z_envelope()

Work with Z values

geo_coordinates()

Extract coordinates as a tibble

geo_coalesce()

Find first non-empty feature

geo_geometry_type()

Extract feature geometry type

plot(<geovctrs_xy>) plot(<geovctrs_segment>) plot(<geovctrs_rect>)

Plot geometry vectors

geo_grob()

Create graphical objects

geo_transform()

Apply an affine transformation

geo_unnest()

Unnest recursive geometry structures

Utility functioons

These might get moved to another package, but for now they live here

unite_xy() separate_xy() unite_xyz() separate_xyz() unite_segment() separate_segment() unite_rect() separate_rect()

Unite and separate components of geometries

geo_lim() geo_range()

Vectorized one-dimensional limits

Example data

Data for writing testing tests, vignettes, and examples

geo_nc

North Carolina dataset

geo_example_wkt

Example well-known text

S3 Details

The nitty gritty details of creating and validating the S3 classes that live in this package

new_geovctrs_lim() is_geovctrs_lim() as_geo_lim() as.matrix(<geovctrs_lim>)

S3 details for geovctrs_lim

new_geovctrs_rect() is_geovctrs_rect() as_geo_rect() vec_cast(<geovctrs_rect>) vec_ptype2(<geovctrs_rect>)

S3 details for geovctrs_rect

new_geovctrs_segment() is_geovctrs_segment() validate_geovctrs_segment() as_geo_segment() vec_cast(<geovctrs_segment>) vec_ptype2(<geovctrs_segment>)

S3 details for geovctrs_segment

new_geovctrs_xy() is_geovctrs_xy() as.matrix(<geovctrs_xy>) as_geo_xy() vec_cast(<geovctrs_xy>) vec_ptype2(<geovctrs_xy>) new_geovctrs_xyz() is_geovctrs_xyz() as_geo_xyz() vec_cast(<geovctrs_xyz>) vec_ptype2(<geovctrs_xyz>)

S3 details for geovctrs_xy