Skip to content

question about accessing geometry from an sf object

2 messages · Roger Bivand, Erin Hodgess

#
Hi Erin,

Maybe consider st_coordinates() to get a matrix of coordinates, 
preferably from st_geometry() of the "sf" object, as hard-coding the name 
of the column containing the "sfc" object might be affected in some cases 
by a different name. Then subset the matrix as you wish.

Hope this helps,

Roger
On Sun, 1 Aug 2021, Erin Hodgess wrote:

            

  
    
#
Thanks so much!

That?s perfect.

Sincerely,
Erin
On Sun, Aug 1, 2021 at 8:20 AM Roger Bivand <Roger.Bivand at nhh.no> wrote: