Project: QGIS

Version: 3.12

Feature: Add expression functions for converting to/from wkb

  • geom_from_wkb( geom_to_wkb( make_point(4,5) ) ) → a point geometry object Returns a geometry created from a Well-Known Binary (WKB) representation.

  • geom_to_wkb( $geometry ) → binary blob containing a geometry object Returns the Well-Known Binary (WKB) representation of a geometry as a binary blob.

Adds geom_from_wkb and geom_to_wkb, which mirror the existing geom_from_wkt/geom_to_wkt functions but for WKB representations of geometries.

Since QGIS 3.6 we've had good support for binary blob values in expressions and field values, so adding these functions allows users to work with binary blob fields containing WKB representations of geometries (e.g. with a geometry generator showing the encoded geometries)

This feature was funded by SLYR

This feature was developed by Nyall Dawson (North Road)