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
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.
//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