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


ISpatialReferenceFactory3.CreateVerticalDatum 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.CreateVerticalDatum Method
ArcGIS Developer Help

ISpatialReferenceFactory3.CreateVerticalDatum Method

Creates a predefined vertical datum from an enumeration or ID code.

[Visual Basic .NET]
Public Function CreateVerticalDatum ( _
    ByVal vdID As Integer _
) As IVerticalDatum
[C#]
public IVerticalDatum CreateVerticalDatum (
    int vdID
);
[C++]
HRESULT CreateVerticalDatum(
  long vdID
);
[C++]
Parameters
vdID 

vdID is a parameter of type long

Product Availability

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

Description

Use an element from the esriSRVerticalDatumType enumeration as the vdID to create a particular predefined vertical datum.

[C#]

    private void CreateVerticalReferenceSystem()
    {
        // use activator class with SpatialReferenceEnvironment singleton
        Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");
        System.Object obj = Activator.CreateInstance(factoryType);
        ISpatialReferenceFactory3 spatialReferenceFactory = obj as ISpatialReferenceFactory3;

        // Dimension a vertical datum and vertical coordinate system
        // Use the enumerations to create instances of the predefined objects
        IVerticalDatum verticalDatum = spatialReferenceFactory.CreateVerticalDatum((int)esriSRVerticalDatumType.esriSRVertDatum_Alicante);
        IVerticalCoordinateSystem verticalCoordinateSystem = spatialReferenceFactory.CreateVerticalCoordinateSystem((int)esriSRVerticalCSType.esriSRVertCS_Alicante);
    }

See Also

ISpatialReferenceFactory3 Interface