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


ISpatialReference.SetZFalseOriginAndUnits Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geometry)  

ISpatialReference.SetZFalseOriginAndUnits Method

Set the Z false origin and units.

[Visual Basic .NET]
Public Sub SetZFalseOriginAndUnits ( _
    ByVal falseZ As Double, _
    ByVal zUnits As Double _
)
[C#]
public void SetZFalseOriginAndUnits (
    double falseZ,
    double zUnits
);
[C++]
HRESULT SetZFalseOriginAndUnits(
  double falseZ,
  double zUnits
);
[C++]

Parameters falseZ
falseZ is a parameter of type double zUnits
zUnits is a parameter of type double

Product Availability

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

Description

An alternative method to the SetZDomain method. The falseZ value corresponds to the minimum Z value of the Z domain. The zUnits is the same as the precision or scale value. The inverse of zUnits is the resolution of the z data.

[C#]

    //This code example shows how to set the Z false origin and units for 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 false origin and units for the dataset. The datatype for the
        //numeric expressions that represent falseZ and zUnits is double.
        spatialReference.SetZFalseOriginAndUnits(0, 1);
    }

See Also

ISpatialReference Interface | ISpatialReferenceResolution Interface

.NET Samples

RSS weather GraphicTracker (Code Files: RSSWeather) | RSS weather layer (Code Files: RSSWeatherLayerClass) | Clonable object (Code Files: TestClass)