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


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

IJSONConverterGeometry.ToPolygon Method

Reads polygon from a JSON object.

[Visual Basic .NET]
Public Function ToPolygon ( _
    ByVal pJSONObject As IJSONObject, _
    ByVal bDefaultHasZs As Boolean, _
    ByVal bDefaultHasMs As Boolean _
) As IPolygon
[C#]
public IPolygon ToPolygon (
    IJSONObject pJSONObject,
    bool bDefaultHasZs,
    bool bDefaultHasMs
);
[C++]
HRESULT ToPolygon(
  IJSONObject* pJSONObject,
  VARIANT_BOOL bDefaultHasZs,
  VARIANT_BOOL bDefaultHasMs,
  IPolygon** ppPolygon
);
[C++]

Parameters pJSONObject [in]
pJSONObject is a parameter of type IJSONObject bDefaultHasZs bDefaultHasZs is a parameter of type VARIANT_BOOL bDefaultHasMs bDefaultHasMs is a parameter of type VARIANT_BOOL ppPolygon [out, retval]
ppPolygon is a parameter of type IPolygon

Product Availability

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

See Also

IJSONConverterGeometry Interface