ArcObjects Library Reference (Geometry)  

IConstructDomainExtent.ConstructZMDomainExtent Method

(deprecated, use ConstructZMDomainExtent2) Constructs a low precision Z or M domain extent centered on the specified extent. scale is 1/(desired resolution). If scale is 0.0, a default of 1,000,000.0 is used.

[Visual Basic .NET]
Public Sub ConstructZMDomainExtent ( _
    ByVal inMin As Double, _
    ByVal inMax As Double, _
    ByVal Scale As Double, _
    ByRef outMin As Double, _
    ByRef outMax As Double _
)
[C#]
public void ConstructZMDomainExtent (
    double inMin,
    double inMax,
    double Scale,
    ref double outMin,
    ref double outMax
);
[C++]
HRESULT ConstructZMDomainExtent(
  double inMin,
  double inMax,
  double Scale,
  double* outMin,
  double* outMax
);
[C++]

Parameters

inMin   inMin is a parameter of type double inMax   inMax is a parameter of type double Scale   Scale is a parameter of type double outMin [out]   outMin is a parameter of type double outMax [out]   outMax is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]

//This example demonstrates how to use ConstructZMDomainExtent method
static void ConstructZMDomainExtent()
{
    double inMin = 0;
    double inMax = 21474.83645;
    double precision = 100000;
    double outMin;
    double outMax;
    IConstructDomainExtent constructDomainExtent = new GeometryEnvironmentClass();
    constructDomainExtent.ConstructZMDomainExtent(inMin, inMax, precision, out outMin, out outMax);
    //The precision corresponds to the input interval therefore the output interval is equal to the input one
    String report = "Output Min and Max \n" +
                    outMin + " , " + outMax;
    System.Windows.Forms.MessageBox.Show(report);
}

[Visual Basic .NET]

    'This example demonstrates how to use ConstructZMDomainExtent method
    Sub ConstructZMDomainExtent()
        Dim pConstructDomainExtent As IConstructDomainExtent
        Dim dInMin As Double, dInMax As Double, dPrecision As Double
        Dim dOutMin As Double, dOutMax As Double
        pConstructDomainExtent = New GeometryEnvironment
        Debug.Print("*********** Example 1 ***********")
        Debug.Print("*Input Extent")
        Debug.Print("0, 21474.83645")
        dInMin = 0
        dInMax = 21474.83645
        dPrecision = 100000
        pConstructDomainExtent.ConstructZMDomainExtent(dInMin, dInMax, dPrecision, dOutMin, dOutMax)
        Debug.Print("*Output Min and Max")
        Debug.Print(dOutMin & " , " & dOutMax)
    End Sub

See Also

IConstructDomainExtent Interface