geoscanpro126
Member
- Joined
- Jul 11, 2025
- Messages
- 6
I'm currently working on a project in R with the sf package, and I need to figure out how to split a bunch of polygons using some intersecting lines. I've got a shapefile that contains various polygons and a separate layer of lines that run through them, and I want to cut the polygons along these lines.
Has anyone done this before? I've tried using st_split() and st_collection_extract() in a few different ways, but I'd really appreciate hearing what's worked for you. Also, if there are any specific issues or quirks I should keep an eye on, that'd be great.
Thanks in advance for any tips, code snippets, or resources you can share
Has anyone done this before? I've tried using st_split() and st_collection_extract() in a few different ways, but I'd really appreciate hearing what's worked for you. Also, if there are any specific issues or quirks I should keep an eye on, that'd be great.
Thanks in advance for any tips, code snippets, or resources you can share