|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.editor.DistanceConverter
public class DistanceConverter
Converts distance values from one unit to another.
Constructor Summary | |
---|---|
DistanceConverter()
Constructs a DistanceConverter using ArcGIS Engine. |
|
DistanceConverter(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DistanceConverter theDistanceConverter = (DistanceConverter) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
double |
getValue(String val,
ISpatialReference pUnits)
Converts the string value to a double. |
int |
hashCode()
the hashcode for this object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public DistanceConverter() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic DistanceConverter(Object obj) throws IOException
DistanceConverter theDistanceConverter = (DistanceConverter) obj;
obj
to DistanceConverter
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public double getValue(String val, ISpatialReference pUnits) throws IOException, AutomationException
The following list of suffixes can be used:
Metric Units:
Distance Units | Abbrev. | Meters per Unit | Description |
---|---|---|---|
Kilometer | km | 1000 | 1000 meters exactly |
Meter | m | 1 | International meter. |
Millimeter | mm | 0.001 | 1/1000 meters exactly |
Imperial or international units:
Distance Units | Abbrev. | Meters per Unit | Description |
---|---|---|---|
Foot | ft | 0.3048 | Standard foot in the US. Also known as international foot or imperial foot that was used in most non-US countries before the metric system. |
Mile | mi | 1609.344 | Also referred to a statute mile, equal to 5280 international feet. |
Nautical mile | nm | 1852 | The nautical mile is a unit of distance used primarily in sea and in aviation. |
Chain | ch | 20.1168 | 66 international feet. |
Yard | yd | 0.9144 | Three international feet. |
Rod | rd | 5.0292 | 1/4 chain or 16.5 international feet. |
Link | lk | 0.201168 | 1/100 international chain or 66/100 international feet. |
Inch | in | 0.0254 | 1/12 of an international foot. |
Distance Units | Abbrev. | Meters per Unit | Description |
---|---|---|---|
Survey foot | ftus | ~0.3048006 | The US survey foot is used in the State Plane Coordinate Systems. An exact conversion is accomplished by multiplying US survey feet by the fraction 1200/3937. |
Survey mile | mius | ~1609.347219 | 5280 survey feet. |
Survey chain | chus | ~20.116840 | 66 survey feet. |
Survey rod | rdus | ~5.029210 | 1/4 survey chain. |
Survey link | lkus | ~0.201168 | 1/100 survey chain. |
Survey yard | ydus | ~0.914402 | 3 survey feet. |
getValue
in interface IDistanceConverter
val
- The val (in)pUnits
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |