Skip to content
On this page

计算两点之间的弧线(greatCircle)

将弧线(Great Circle)计算为LineString或MultiLineString。如果输入的起点和终点跨越了180度经线,则结果将被拆分为MultiLineString表示

Calculate great circles routes as LineString or MultiLineString. If the start and end points span the antimeridian, the resulting feature will be split into a MultiLineString .

参数

参数类型描述
startCoord起始点
toCoord终点
optionsObject配置项

配置项(Options)

Prop类型默认值描述
propertiesObject{}线的Feature属性
npointsnumber100离散点数量
offsetnumber10控制跨越日期变更线的线是否被拆分,该参数值越高表示拆分的可能性越大

返回(Returns)

Feature <(LineString|MultiLineString)> - 弧线

示例