public class

LinearUnit

extends Unit
java.lang.Object
   ↳ com.esri.core.geometry.Unit
     ↳ com.esri.core.geometry.LinearUnit

Class Overview

Unit for measurement of dimensions.

Summary

Nested Classes
interface LinearUnit.Code Linear Unit codes 
[Expand]
Inherited Fields
From class com.esri.core.geometry.Unit
Public Constructors
LinearUnit(int WKID)
Public Methods
double convertFromMeters(double meters)
Converts meters to this LinearUnit.
double convertToMeters(double thisUnitValue)
Converts this linear units to meters.
boolean equals(Object other)
Indicates if this unit is the same type (linear, angular, or area) and the same unit (meter, degree, acre, etc.)as another.
String getAbbreviation()
Returns the abbreviated name of this unit.
double getConversionFactor(Unit dstUnit)
Returns a conversion factor from this unit to the destination unit.
String getDisplayName()
Returns the display name of this unit.
int getID()
Returns the unit's well-known ID.
String getName()
Returns the canonical name of the unit as defined in Projection Engine.
String getPluralDisplayName()
Returns the display name of this unit.
Unit.UnitType getUnitType()
Returns the unit type.
double toMeters(double thisUnitValue)
This method is deprecated. Method introduced at Beta. Will be removed at next release.
[Expand]
Inherited Methods
From class com.esri.core.geometry.Unit
From class java.lang.Object

Public Constructors

public LinearUnit (int WKID)

Public Methods

public double convertFromMeters (double meters)

Converts meters to this LinearUnit.

Parameters
meters The value in meters to convert.
Returns
  • The linear unit value corresponding to the input parameter.

public double convertToMeters (double thisUnitValue)

Converts this linear units to meters.

Parameters
thisUnitValue The value in this linear units to convert.
Returns
  • The value in meters corresponding to the input parameter.

public boolean equals (Object other)

Indicates if this unit is the same type (linear, angular, or area) and the same unit (meter, degree, acre, etc.)as another.

Parameters
other The other object.
Returns
  • true, if equals

public String getAbbreviation ()

Returns the abbreviated name of this unit.

Returns
  • A string value of abbreviation for unit.

public double getConversionFactor (Unit dstUnit)

Returns a conversion factor from this unit to the destination unit.

Parameters
dstUnit The destination unit.
Returns
  • A double conversion factor.

public String getDisplayName ()

Returns the display name of this unit.

Returns
  • A string value of unit display name.

public int getID ()

Returns the unit's well-known ID.

Returns
  • Integer value for wkid.

public String getName ()

Returns the canonical name of the unit as defined in Projection Engine.

Returns
  • A string representation of Projection Engine unit name.

public String getPluralDisplayName ()

Returns the display name of this unit.

Returns
  • string value of plural display name

public Unit.UnitType getUnitType ()

Returns the unit type.

Returns
  • the unit type

public double toMeters (double thisUnitValue)

This method is deprecated.
Method introduced at Beta. Will be removed at next release.

To meters.

Parameters
thisUnitValue the this unit value
Returns
  • the double