turf-bbox-polygon

WebJar for turf-bbox-polygon

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

turf-bbox-polygon
Last Version

Last Version

3.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

turf-bbox-polygon
WebJar for turf-bbox-polygon
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/turf-junkyard/turf-bbox-polygon

Download turf-bbox-polygon

How to add to project

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

Dependencies

compile (1)

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

Project Modules

There are no modules declared in this project.

turf-bbox-polygon

build status

turf bboxPolygon module

turf.bbox-polygon(bbox)

Takes a bbox and returns an equivalent Polygon|polygon.

Parameters

parameter type description
bbox Array.<number> an Array of bounding box coordinates in the form: [xLow, yLow, xHigh, yHigh]

Example

var bbox = [0, 0, 10, 10];

var poly = turf.bboxPolygon(bbox);

//=poly

Returns Feature.<Polygon>, a Polygon representation of the bounding box

Installation

Requires nodejs.

$ npm install turf-bbox-polygon

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