powered by
Returns points within the shape, near the center. Uses the centroid if that's in the shape, or point on surface if not.
st_centerish(shp, epsg = 3857)
An sf dataframe where geometry is the center(ish) of each shape in shp
An sf dataframe
numeric EPSG code to planarize to. Default is 3857.
data(towns) st_centerish(towns)
Run the code above in your browser using DataLab