rbush
描述
¥Description
GeoJSON implementation of RBush spatial index.
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
maxEntries? | number | defines the maximum number of entries in a tree node.9(默认使用)对于大多数应用来说都是合理的选择。Higher value means faster insertion and slower search, and vice versa.(默认 9) |
返回
¥Returns
RBush GeoJSON RBush
示例
¥Examples
var geojsonRbush = require("geojson-rbush").default;
var tree = geojsonRbush();
安装
¥Installation
$ npm install @turf/geojson-rbush
import { rbush } from "@turf/geojson-rbush";
const result = rbush(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.rbush(...);