Skip to main content
Version: 7.2.0

rbush

描述

¥Description

RBush 空间索引的 GeoJSON 实现。

¥GeoJSON implementation of RBush spatial index.

参数

¥Parameters

名称类型描述
maxEntries?number定义树节点中的最大条目数。9(默认使用)对于大多数应用来说都是合理的选择。值越高,插入速度越快,搜索速度越慢,反之亦然。(默认 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(...);