distdim
(Not recommended) Convert length units
The distdim
function is not recommended. Use a different conversion
function or the unitsratio
function instead. For more
information, see Compatibility Considerations.
Syntax
Description
converts the distance distOut
= distdim(distIn
,originalUnit
,targetUnit
)distIn
from the units specified by
originalUnit
to the units specified by
targetUnit
. This function assumes that distIn
is
along a great circle path on a reference sphere. If originalUnit
or
targetUnit
is an angular unit, then this syntax uses a reference
sphere with a radius of 6371 kilometers.
when either distOut
= distdim(distIn
,originalUnit
,targetUnit
,r
)originalUnit
or targetUnit
is a length
unit, and the other is an angular unit, converts the distance using a reference sphere with
radius r
. The function ignores r
when
originalUnit
and targetUnit
are both angular
units or both length units.
when either distOut
= distdim(distIn
,originalUnit
,targetUnit
,refSphere
)originalUnit
or targetUnit
is a length
unit, and the other is an angular unit, converts the distance using the reference sphere
refSphere
. The function ignores refSphere
when
originalUnit
and targetUnit
are both angular
units or both length units.