Skip to main content
Version: 7.3.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(...);