fmeobjects.FMEFeature.exportGeometryToOGCWKB

FMEFeature.exportGeometryToOGCWKB(version)

Convert the geometry of the feature to the OGC Well Known Binary format.

Parameters:

version (int) –

(Optional) The OGC Version to use. Must be one of:

(Default value is ogcvOneDotOne).

Return type:

bytearray, bytes, or None

Returns:

A buffer representing the geometry of the feature converted to the OGCWKB.

Raises:

FMEException – An exception is raised if an error occurred.