Learn R Programming

geomander (version 2.3.0)

geos_centerish: Get the kind of center of each shape

Description

Returns points within the shape, near the center. Uses the centroid if that's in the shape, or point on surface if not.

Usage

geos_centerish(shp, epsg = 3857)

Value

A geos geometry list

Arguments

shp

An sf dataframe

epsg

numeric EPSG code to planarize to. Default is 3857.

Examples

Run this code
data(towns)
geos_centerish(towns)

Run the code above in your browser using DataLab