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


ISpatialReferenceFactory3.CreateESRISpatialReferenceInfo Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReferenceFactory3 Interface > ISpatialReferenceFactory3.CreateESRISpatialReferenceInfo Method
ArcGIS Developer Help

ISpatialReferenceFactory3.CreateESRISpatialReferenceInfo Method

Creates a spatial reference system and defines it from the specified ESRISpatialReference buffer.

[Visual Basic .NET]
Public Sub CreateESRISpatialReferenceInfo ( _
    ByVal spatRefInfo As String, _
    ByRef SpatialReference As ISpatialReferenceInfo, _
    ByRef cBytesRead As Integer _
)
[C#]
public void CreateESRISpatialReferenceInfo (
    string spatRefInfo,
    ref ISpatialReferenceInfo SpatialReference,
    ref int cBytesRead
);
[C++]
HRESULT CreateESRISpatialReferenceInfo(
  BSTR spatRefInfo,
  ISpatialReferenceInfo** SpatialReference,
  System.Int32* cBytesRead
);
[C++]
Parameters
spatRefInfo 

spatRefInfo is a parameter of type BSTR SpatialReference [out]
SpatialReference is a parameter of type ISpatialReferenceInfo** cBytesRead [out]
cBytesRead is a parameter of type long*

Product Availability

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

Description

CreateESRISpatialReferenceInfo creates a spatial reference from the well-known text (WKT) version. Below is an example of a WKT string, broken into several lines to make it easier to read.

GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",
  SPHEROID["Clarke_1866",6378206.4,294.9786982]],
  PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],
VERTCS["NAVD_1988",VDATUM["North_American_Vertical_Datum_1988"],
  PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],
  UNIT["Meter",1.0]]

See Also

ISpatialReferenceFactory3 Interface