This document is archived and information here might be outdated.  Recommended version.


IJSONConverterGeometry.ToGeometry Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IJSONConverterGeometry.ToGeometry Method

Reads geometry object from JSON object.

[Visual Basic .NET]
Public Function ToGeometry ( _
    ByVal pJSONObject As IJSONObject, _
    ByVal geomType As esriGeometryType, _
    ByVal bDefaultHasZs As Boolean, _
    ByVal bDefaultHasMs As Boolean _
) As IGeometry
[C#]
public IGeometry ToGeometry (
    IJSONObject pJSONObject,
    esriGeometryType geomType,
    bool bDefaultHasZs,
    bool bDefaultHasMs
);
[C++]
HRESULT ToGeometry(
  IJSONObject* pJSONObject,
  esriGeometryType geomType,
  VARIANT_BOOL bDefaultHasZs,
  VARIANT_BOOL bDefaultHasMs,
  IGeometry** ppGeom
);
[C++]

Parameters pJSONObject [in]
pJSONObject is a parameter of type IJSONObject geomType [in]
geomType is a parameter of type esriGeometryType bDefaultHasZs bDefaultHasZs is a parameter of type VARIANT_BOOL bDefaultHasMs bDefaultHasMs is a parameter of type VARIANT_BOOL ppGeom [out, retval]
ppGeom is a parameter of type IGeometry

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IJSONConverterGeometry Interface