getCentroids | R Documentation |
Similar to cbind( shp , st_coordinates(st_centroid(shp)))
getCentroids(shp)
shp, |
sf object |
shp with 2 new lng and lat columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.