findPoint
描述
¥Description
使用 @turf/meta
索引从 GeoJSON 中查找特定点。
¥Finds a particular Point from a GeoJSON using @turf/meta
indexes.
允许使用负索引。
¥Negative indexes are permitted.
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
geojson | FeatureCollection | 特性 | 几何图形 | 任何 GeoJSON 要素或几何图形 |
options? | 对象 | 可选参数(默认 {}) |
options.featureIndex? | number | 要素索引(默认 0) |
options.multiFeatureIndex? | number | 多要素索引(默认值为 0) |
options.geometryIndex? | number | 几何体索引(默认 0) |
options.coordIndex? | number | 坐标索引(默认 0) |
options.properties? | 对象 | 将属性转换为输出点(默认 {}) |
options.bbox? | BBox | 将 BBox 转换为输出点(默认 {}) |
options.id? | number | string | 将 ID 转换为输出点(默认 {}) |