PostGIS
3.4.0dev-r@@SVN_REVISION@@
|
|
static |
Convert LWGEOM to a char* in WKB format.
Caller is responsible for freeing the returned array.
variant. | Unsigned bitmask value. Accepts one of: WKB_ISO, WKB_EXTENDED, WKB_SFSQL. Accepts any of: WKB_NDR, WKB_HEX. For example: Variant = ( WKB_ISO | WKB_NDR ) would return the little-endian ISO form of WKB. For Example: Variant = ( WKB_EXTENDED | WKB_HEX ) would return the big-endian extended form of WKB, as hex-encoded ASCII (the "canonical form"). |
size_out | If supplied, will return the size of the returned memory segment, including the null terminator in the case of ASCII. |
Definition at line 797 of file lwout_wkb.c.
References buffer(), IS_BIG_ENDIAN, lwgeom_to_wkb_buf(), variant, WKB_NDR, and WKB_XDR.
Referenced by lwgeom_to_wkb_buffer(), and lwgeom_to_wkb_varlena().