Skip to main content
Version: 7.3.0

rbush

描述

🌐 Description

RBush 空间索引的 GeoJSON 实现。

🌐 GeoJSON implementation of RBush spatial index.

参数

🌐 Parameters

名称类型描述
maxEntries?数字定义树节点中的最大条目数。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(...);