geo.stDistance() 函数
geo.stDistance() 是实验性的,随时可能会更改。
geo.stDistance() 返回给定区域到指定GIS几何图形的距离。
geo.stDistance 用作 geo.ST_Distance() 的辅助函数。
函数类型签名
(geometry: A, region: B, units: {distance: string}) => float where A: Record, B: Record
有关更多信息,请参见 Function type signatures。
参数
区域
(必需) 要测试的区域。指定形状的记录属性。
几何
(必需) 要测试的GIS几何体。可以是点几何体或线段几何体。
单位
(必填) 记录定义距离的计量单位。