quadtree

WebJar for quadtree

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

quadtree
Последняя версия

Последняя версия

1.1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

quadtree
WebJar for quadtree
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/B2MSolutions/node-quadtree

Скачать quadtree

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/quadtree/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>quadtree</artifactId>
    <version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/quadtree/
implementation 'org.webjars.npm:quadtree:1.1.3'
// https://jarcasting.com/artifacts/org.webjars.npm/quadtree/
implementation ("org.webjars.npm:quadtree:1.1.3")
'org.webjars.npm:quadtree:jar:1.1.3'
<dependency org="org.webjars.npm" name="quadtree" rev="1.1.3">
  <artifact name="quadtree" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='quadtree', version='1.1.3')
)
libraryDependencies += "org.webjars.npm" % "quadtree" % "1.1.3"
[org.webjars.npm/quadtree "1.1.3"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

node-quadtree

Build Status

Description

Quadtree is a node module that encodes and decodes geospatial quadtrees.

The encoding algorithm orders the tiles using the bing maps ordering shown below:

Quadtree ordering

Installation

$ npm install quadtree

Usage

var quadtree = require('quadtree');

	var coordinate = {
	    lat: -27.093364,
	    lng: -109.367523
	};

	var precision = 8;
	var encoded = quadtree.encode(coordinate, precision); // returns "20310230")

	var decoded = quadtree.decode(encoded); // returns { origin: { lng: -108.984375, lat: -27.0703125 }, error: { lng: 0.703125, lat: 0.3515625 } }

	var neighbour = quadtree.neighbour(encoded, 1, 1); // returns "20310213"

	var boundingBox = quadtree.bbox(encoded); // returns { minlng: -109.6875, minlat: -27.421875, maxlng: -108.28125, maxlat: -26.71875 }

	var enveloped = quadtree.envelop(boundingBox, precision); // returns [ '20310230', '20310231', '20310212', '20310213' ]

quadtree.encode(coordinate, precision)

Encodes a coordinate into a quadtree of the specified precision.

quadtree.decode(quadtree)

Decodes a quadtree into an origin and error.

quadtree.neighbour(encoded, north, east)

Finds the neighbour of the given quadtree, walking a number of tiles in the supplied direction.

quadtree.bbox(encoded)

Returns the bounding box of the tile containing the supplied quadtree.

quadtree.envelop(bbox, precision)

Returns an array of quadtrees that are enveloped by the bbox at the supplied precision.

Contributors

Pair programmed by Roy Lines and James Bloomer.

org.webjars.npm

B2M Solutions

Версии библиотеки

Версия
1.1.3