Displaying 2 results from an estimated 2 matches for "multipolygon".
2008 Dec 15
1
convert opengis wkt to geometry?
...t), I didn't check see if there is already something
available to convert WKT strings into some R package geometry (sp?).
Does anyone have any advice, hints, code (?) for converting the
following OpenGIS strings into something useful in R:
POINT
MULTIPOINT
LINESTRING
MULTILINESTRING
POLYGON
MULTIPOLYGON
GEOMETRYCOLLECTION
Jeff.
2024 May 17
0
[External] Re: Removing polygons from shapefile of Scotland and Islands
Scotland is the second feature in the UK data, so get it and split this one
MULTIPOLYGON feature into individual POLYGONS
scot = st_cast(the_uk$geometry[2],"POLYGON")
# which is the largest polygon?
which.max(st_area(scot))
[1] 1
# the first one. ok...
plot(scot[[1]]) # mainland
# add the rest of the islands for context, in grey, maybe to show they're
outside our stu...