DuckDB v1.0.0 1f98600c2c
$ cd '/mnt/j/gis/Global/overture/2024_07/theme=addresses/type=address'
$ COUNTRY=CA
$ echo "COPY (
SELECT h3_cell_to_boundary_wkt(
h3_latlng_to_cell(bbox.ymax, bbox.xmax, 5))::geometry geom,
COUNT(*)
FROM read_parquet('*.parquet')
WHERE country = '$COUNTRY'
group by 1
) TO '../../addresses.$COUNTRY.gpkg'
WITH (FORMAT GDAL,
DRIVER 'GPKG',
LAYER_CREATION_OPTIONS 'WRITE_BBOX=YES')" | ~/duckdb
Floating point exception
The above is in the US dataset.