This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReference Interface > ISpatialReference.SetMFalseOriginAndUnits Method (ArcObjects .NET 10.4 SDK) |
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
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.
//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);
}
ISpatialReference Interface | ISpatialReferenceResolution Interface