client.connect

client.connect(con=None)

DuckDB connection able to read the cartiflette files.

Parameters

Name Type Description Default
con duckdb.DuckDBPyConnection Existing connection to use. By default, an in-memory connection shared by all the calls: the relations returned with engine="duckdb" stay usable, and the extensions are loaded once. None

Returns

Name Type Description
duckdb.DuckDBPyConnection Connection with the httpfs and spatial extensions loaded. The proxy is taken from the https_proxy environment variable. Coordinates are read as (longitude, latitude), the order of the files, by the functions that depend on it (geometry_always_xy): ST_Distance_Sphere and ST_Transform from EPSG:4326 expect (latitude, longitude) otherwise.
Retour au sommet