turf-square

WebJar for turf-square

License

License

MIT
Categories

Categories

Square Business Logic Libraries Financial
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-square
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-square
WebJar for turf-square
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download turf-square

How to add to project

<!-- 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"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : turf-distance jar [3.0.12,4)
org.webjars.npm : turf-helpers jar [3.0.12,4)

Project Modules

There are no modules declared in this project.

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

Versions

Version
3.0.12