Appearance
KBE3D / KBCore / turf / coordAll
函数: coordAll()
coordAll(
geojson:AllGeoJSON):number[][]
Function
Get all coordinates from any GeoJSON object.
参数
geojson
any GeoJSON object
返回
number[][]
coordinate position array
示例
ts
var features = turf.featureCollection([
turf.point([26, 37], {foo: 'bar'}),
turf.point([36, 53], {hello: 'world'})
]);
var coords = turf.coordAll(features);
//= [[26, 37], [36, 53]]