I have a WKT file with a few hundred POLYGON((...,...,...))
entries. Is there an R package to read, plot and convert such data? I did not find anything explicit. Just want to avoid working with strings when there might be a more elaborate existing approach. Thanks in advance.
How to read, plot and convert WKT to table in R?
3.9k views Asked by AudioBubble At
3
Okay, I found two packages that bring me to a straightforward solution. Here's the code to extract the coordinates from a
POLYGON((...,...))
WKT type.EDIT: the aforementioned applies to a single string / WKT object. The following code can be applied to a WKT file, creating a list of matrices: