Skip to content
Prev 29522 / 29559 Next

How to retrieve the interior boundary (points) of a polygon sf object

I'm not sure I fully understand the objective. But this is how I would do
it with rsgeo?I'm not sure how to do it with sf

library(sf)
library(spData)
library(rsgeo)

union_geoms(as_rsgeo(us_states)) |>
  expand_geoms() |>
  .subset2(1) |>
  head(1) |>
  cast_geoms("multipoint") |>
  st_as_sfc() |>
  plot()

[image: image.png]


On Wed, Aug 6, 2025 at 10:56?AM Andrea Gilardi - Unimib <
andrea.gilardi at unimib.it> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20250806/0ae590d3/attachment.html>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 64266 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20250806/0ae590d3/attachment.png>