Skip to content

v0.14.0

Choose a tag to compare

@cboettig cboettig released this 18 Nov 19:49
· 24 commits to main since this release
1ca2215

Added

  • COGs carry their band statistics inside the file (#340). Portolan requires min/max/mean/stddev and the valid percentage on every band of a COG (PORTO-FMT-026 to 029), embedded rather than in an .aux.xml sidecar, and rashid 0.4.0 found none on our COGs. Both COG writers, create_cog and the mosaic path, now pass the COG driver's STATISTICS=YES, which computes them from the full-resolution data, excluding nodata, and stores them in the TIFF's GDAL_METADATA tag.

Changed

  • Convert writes GeoParquet 1.1 with a bbox covering column (#340). Portolan requires GeoParquet 1.1 or 2.x and spatial statistics on every row group (PORTO-FMT-007/012), and rashid 0.4.0 failed convert output on both: DuckDB wrote GeoParquet 1.0.0, whose WKB column has no spatial statistics. The flat GeoParquet now carries a bbox struct column (xmin, ymin, xmax, ymax; <geometry>_bbox if the data already has a bbox), declared as the geometry's covering in a 1.1.0 geo key, so every row group has min/max statistics a reader can prune on. This reverses #53, which dropped geoparquet-io's bbox column on the belief that DuckDB already wrote row-group spatial statistics for the WKB column; it does not. The geometry stays plain WKB rather than the native Parquet GEOMETRY type, which DuckDB 2.0 can also write but which changes the column type for every downstream reader. The geo key lists geometry_types as [] ("unknown") and has no file bbox, since both would need a second pass over the data. The covering column stays in the GeoParquet: hex partitions and PMTiles carry the same attributes as before, and a GeoParquet source's own covering is replaced rather than kept alongside the new one.