CreateGeometryFromWKT

Creates a geometry based on the Well-Known Text representation for the geometry object. SeeWell-Known Text and Well-Known Binary (WKT and WKB)” in the “Overview” chapter for background information on WKT.

 

JavaScript

 

CreateGeometryFromWKT(

       buffer)

 

C#

 

IGeometry CreateGeometryFromWKT(

       string buffer)

 

C++

 

HRESULT CreateGeometryFromWKT(

       BSTR buffer,

       IGeometry** pVal)

 

Parameters

buffer

The buffer containing the Well-Known Text representation for the geometry object.

Return Value

pVal

An IGeometry representing the newly created geometry.

Exceptions

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