Nyall Dawson fed75afa95 [FEATURE] Add expression functions for converting to/from wkb
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)
2019-11-04 13:00:11 +10:00

9 lines
336 B
Plaintext

{
"name": "geom_to_wkb",
"type": "function",
"description": "Returns the Well-Known Binary (WKB) representation of a geometry as a binary blob.",
"arguments": [ {"arg":"geometry","description":"a geometry"}],
"examples": [ { "expression":"geom_to_wkb( $geometry )", "returns":"binary blob containing a geometry object"}
]
}