com.esri.arcgis.geodatabaseextensions
Interface ICadastralUnitConversion

All Superinterfaces:
Serializable
All Known Implementing Classes:
CadastralUnitConversion

public interface ICadastralUnitConversion
extends Serializable

Provides access to methods that allow a distance to be converted from one unit to another.

Product Availability

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


Method Summary
 double convertDouble(double val, int unit, int outputUnit)
          Convert units of a double value.
 double convertString(String val, int defaultUnit, int outputUnit)
          Convert units of string value to double.
 int getDistanceUnitType(ILinearUnit pLinearUnit)
          Cadastral Distance Units for a particular linear unit.
 

Method Detail

getDistanceUnitType

int getDistanceUnitType(ILinearUnit pLinearUnit)
                        throws IOException,
                               AutomationException
Cadastral Distance Units for a particular linear unit.

Product Availability

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

Parameters:
pLinearUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
Returns:
A com.esri.arcgis.geodatabaseextensions.esriCadastralDistanceUnits constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertString

double convertString(String val,
                     int defaultUnit,
                     int outputUnit)
                     throws IOException,
                            AutomationException
Convert units of string value to double. Example: '55 ft'. If the unit suffix string is missing, the default unit is used.

Product Availability

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

Parameters:
val - The val (in)
defaultUnit - A com.esri.arcgis.geodatabaseextensions.esriCadastralDistanceUnits constant (in)
outputUnit - A com.esri.arcgis.geodatabaseextensions.esriCadastralDistanceUnits constant (in)
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convertDouble

double convertDouble(double val,
                     int unit,
                     int outputUnit)
                     throws IOException,
                            AutomationException
Convert units of a double value.

Product Availability

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

Parameters:
val - The val (in)
unit - A com.esri.arcgis.geodatabaseextensions.esriCadastralDistanceUnits constant (in)
outputUnit - A com.esri.arcgis.geodatabaseextensions.esriCadastralDistanceUnits constant (in)
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.