Appearance
KBE3D / KBCore / turf / getCoord
函数: getCoord()
getCoord(
coord:number[] |Point|Feature<Point,GeoJsonProperties>):number[]
Function
Unwrap a coordinate from a Point Feature, Geometry or a single coordinate.
参数
coord
GeoJSON Point or an Array of numbers
number[] | Point | Feature<Point, GeoJsonProperties>
返回
number[]
coordinates
示例
ts
var pt = turf.point([10, 10]);
var coord = turf.getCoord(pt);
//= [10, 10]