ExportToWKB

Converts a geometry into Well-Known Binary format.

 

JavaScript

 

ExportToWKB(

       b3Dimension)

 

C#

 

dynamic ExportToWKB(

       bool b3Dimension)

 

C++

 

HRESULT ExportToWKB(

       VARIANT_BOOL b3Dimension,

       VARIANT* wkb)

Parameters

b3Dimension

A Boolean that determines whether Z values are exported to the WKB. When set to TRUE, they are exported; when FALSE, they are omitted.

Return Value

wkb

A Safe Array of unsigned bytes.

Note:    As of IE11, VBScript which includes the VBArray object that returns a SafeArray, is considered deprecated. In order to continue using this TerraExplorer API using JavaScript, add the following meta tag in the head section, to enable you to choose which version of Internet Explorer the HTML page should be rendered in (in this case IE10):
<meta http-equiv="X-UA-Compatible" content="IE=10" />

Note:    In JavaScript, use the VBArray object. E.g.,

var wkb = geometry.ExportToWKB(true); 

var arr = new VBArray(wkb).toArray();

Exceptions

See:  HRESULT Return Values for a list of possible values returned by the HRESULT.