Skip to contents

In case of having the polygon geometry defined, it obtains the point geometry from it.

Usage

complete_point_geometry(gl)

# S3 method for geolevel
complete_point_geometry(gl)

Arguments

gl

A geolevel object.

Value

A geolevel object.

Details

If the point geometry was already defined, if there are instances with this geometry empty, it completes them.

Examples


layer_us_state <- get_level_layer(gd_us, "state")

state <-
  geolevel(name = "state",
           layer = layer_us_state,
           key = "statefp",
           snake_case = TRUE) |>
  complete_point_geometry()