paleolimbot opened a new issue, #772:
URL: https://github.com/apache/sedona-db/issues/772
When reading from a gpkg or other pylori-accessible datasource with
SedonaDB, we don't get the ability to either list multiple layers or query
anything except the default:
```python
import sedona.db
sd = sedona.db.connect()
sd.options.interactive = True
gpkg = "/Volumes/data/usgs-3dhp/data/3dhp_all_CONUS_20250313_GPKG.gpkg"
sd.read_pyogrio(gpkg, layer="hydro_3dhp_all_waterbody")
#> TypeError: SedonaContext.read_pyogrio() got an unexpected keyword
argument 'layer'
sd.read_pyogrio(gpkg, options={"layer": "hydro_3dhp_all_waterbody"})
#> UserWarning: More than one layer found in
'3dhp_all_CONUS_20250313_GPKG.gpkg': 'hydro_3dhp_all_catchment' (default),
'hydro_3dhp_all_drainagearea', 'hydro_3dhp_all_flowline',
'hydro_3dhp_all_landscape', 'hydro_3dhp_all_network', 'hydro_3dhp_all_rc_team',
'hydro_3dhp_all_waterbody'. Specify layer parameter to avoid this warning.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]