I know this would be probably more complex than it sounds.
- The result data frame might not contain a geometry column. If we naively attempt to create an sf object, it fails when there's no geometry column. We need to fall back to tibble.
- The result data frame might contain multiple geometry columns. We might need to provide some option to specify which column is primary.
- Considering SedonaDB has both vector and raster, honestly I'm not sure sf is the appropriate representation.
I know this would be probably more complex than it sounds.