coolbutuseless / svgparser

Render SVG images in R. Load SVG data as data.frames
https://coolbutuseless.github.io/package/svgparser
MIT License
48 stars 1 forks source link

svg -> wkt converter #6

Open kylebutts opened 2 years ago

kylebutts commented 2 years ago

Hi, love this package! Would you support a obj_type of "wkt" for well-known text for easy use with spatial type packages, e.g. {sf} and {geos}?

coolbutuseless commented 2 years ago

Sure. The best way to kick this off would be to take the obj_type = 'data.frame' output and transform the individual elements into wkt.

It's not something I have the bandwidth to attempt myself, but willing to consider PR