-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(duckdb): enforce aswkb for projections, coerce to geopandas
Two things happening in here: 1. We intercept the call to `get_sqla_type` to enforce the use of `ST_AsWKB`, overriding the behavior of `geoalchemy` which is very PostGIS-focused. 2. We add a DuckDB-specific `_to_geodataframe` since we're getting a WKB out of DuckDB and can pass this directly to `geopandas` without first going through Shapely (as we do in the base alchemy method)
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters