[R-sig-Geo] Sf find number of parts in multigeometry

Martin Tomko tomkom @ending from unimelb@edu@@u
Tue Oct 23 04:32:31 CEST 2018


I am looking for an equivalent to Postgis ST_NumGeometries https://postgis.net/docs/ST_NumGeometries.html
I have multipolygons in an sf df, where most of them are likely to be single part. I want to identify those that are not single part, and possibly retain only the largest polygon part, and cast all into Polygon.
Any advice is appreciated, thanks!

Martin


	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list