Skip to content

KBE3D / KBCore / turf / coordAll

函数: coordAll()

coordAll(geojson: AllGeoJSON): number[][]

Function

Get all coordinates from any GeoJSON object.

参数

geojson

AllGeoJSON

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]]

KBE3D @3.0.0 Copyright © 2024-present KBE3D