ArcObjects Library Reference (Geometry)  

ISpatialReference.SetMFalseOriginAndUnits Method

Set the measure false origin and units.

[Visual Basic .NET]
Public Sub SetMFalseOriginAndUnits ( _
    ByVal falseM As Double, _
    ByVal mUnits As Double _
)
[C#]
public void SetMFalseOriginAndUnits (
    double falseM,
    double mUnits
);
[C++]
HRESULT SetMFalseOriginAndUnits(
  double falseM,
  double mUnits
);
[C++]

Parameters

falseM   falseM is a parameter of type double mUnits   mUnits is a parameter of type double

Product Availability

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

Description

An alternative method to the SetMDomain method. The falseM value corresponds to the minimum measure value of the measure domain. The mUnits is the same as the precision or scale value. The inverse of mUnits is the resolution of the measure data.

[C#]

    //This code example shows how to set the measure false origin and units
    private void SetSpatialReferenceProperties(IFeatureClass featureClass)
    {
        IGeoDataset geoDataset = featureClass as IGeoDataset;

        //get access to SpatialReference through IGeoDataset
        ISpatialReference spatialReference = geoDataset.SpatialReference;
        //set the M false origin and units for the dataset where the
        //numeric expressions that represent falseM and mUnits are double
        spatialReference.SetMFalseOriginAndUnits(0, 1);
    }

See Also

ISpatialReference Interface | ISpatialReferenceResolution Interface