turf-square

WebJar for turf-square

Лицензия

Лицензия

MIT
Категории

Категории

Square Прикладные библиотеки Financial
Группа

Группа

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

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

turf-square
Последняя версия

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

3.0.12
Дата

Дата

Тип

Тип

jar
Описание

Описание

turf-square
WebJar for turf-square
Ссылка на сайт

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

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

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

https://github.com/turf-junkyard/turf-square

Скачать turf-square

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : turf-distance jar [3.0.12,4)
org.webjars.npm : turf-helpers jar [3.0.12,4)

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

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

turf-square

build status

turf square module

turf.square(bbox)

Takes a bounding box and calculates the minimum square bounding box that would contain the input.

Parameters

parameter type description
bbox Array.<number> a bounding box

Example

var bbox = [-20,-20,-15,0];

var squared = turf.square(bbox);

var features = {
  "type": "FeatureCollection",
  "features": [
    turf.bboxPolygon(bbox),
    turf.bboxPolygon(squared)
  ]
};

//=features

Returns Array.<number>, a square surrounding bbox

Installation

Requires nodejs.

$ npm install turf-square

Tests

$ npm test
org.webjars.npm

deprecated turf modules: do not use or reference, for redirects only

turf is now a monorepo: all turf modules are in Turfjs/turf

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

Версия
3.0.12