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


ISpatialReference.SetZDomain Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

ISpatialReference.SetZDomain Method

The Z domain extent.

[Visual Basic .NET]
Public Sub SetZDomain ( _
    ByVal inZMin As Double, _
    ByVal inZMax As Double _
)
[C#]
public void SetZDomain (
    double inZMin,
    double inZMax
);
[C++]
HRESULT SetZDomain(
  double inZMin,
  double inZMax
);
[C++]

Parameters inZMin [in] inZMin is a parameter of type double inZMax [in] inZMax is a parameter of type double

Product Availability

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

Description

An alternative method to the SetZFalseOriginAndUnits method. Sets the minimum and maximum allowed Z values for a spatial reference. Use SetZFalseOriginAndUnits to set explicitly the allowed Z precision value. The zUnits value is the inverse of the resolution of the Z data.

[C#]     //This code example shows how to set the Z domain extent of a dataset.
    private void SetSpatialReferenceProperties(IFeatureClass featureClass)
    {
        IGeoDataset geoDataset=featureClass as IGeoDataset;
        //get access to SpatialReference through IGeoDataset
        ISpatialReference spatialReference=geoDataset.SpatialReference;
        //set the Z domain extent for the dataset
        spatialReference.SetZDomain(0, 2000000000);
    }

See Also

ISpatialReference Interface | ISpatialReferenceResolution Interface

.NET Related Topics

Creating a plug-in data source