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


IJSONConverterGeometry.ReadGeometry Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IJSONConverterGeometry.ReadGeometry Method

Reads geometry object. If provided geometry type is esriUnknown, tries to deduce geometry type from the JSON structure.

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

Parameters pReader [in]
pReader is a parameter of type IJSONReader 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