7.2.0 • Published 12 months ago

@turf/bbox-polygon v7.2.0

Weekly downloads
156,882
License
MIT
Repository
github
Last release
12 months ago

@turf/bbox-polygon

bboxPolygon

Takes a bbox and returns an equivalent polygon.

Parameters

  • bbox BBox extent in minX, minY, maxX, maxY order
  • options Object Optional parameters (optional, default {})
    • options.properties Properties Translate properties to Polygon (optional, default {})
    • options.id (string | number) Translate Id to Polygon (optional, default {})

Examples

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

var poly = turf.bboxPolygon(bbox);

//addToMap
var addToMap = [poly]

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


This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @turf/bbox-polygon

Or install the Turf module that includes it as a function:

$ npm install @turf/turf
@infinitebrahmanuniverse/nolb-_tur@hopara/hoparathing-it-server@everything-registry/sub-chunk-941winnowx-hongtu-utilxlucene-evaluatortest-yaravibemap-constantsiphaeton-idly-glidly-glidly-workeridly-commongtfs-to-geojsonhongtu-utilluke.glmap-common-utilsmapbox-gl-circlemapbox-gl-circle-forkedmapbox-gl-js-mockmapbox-gl-draw-snap-on-modemap-tile-downloadermapbox-query-featuresmapbox-map-image-exportmcalzado-react-workers@watergis/elastic2mvt@wayz/react-gl@varlab-ucf/nebula.gl@varlab-ucf/nebulagl-edit-modes@varlab-ucf/nebulagl-layers@turf/turf@turf/nearest-neighbor-analysis@turf/shortest-path@turf/quadrat-analysis@turf/envelope@terascope/utils@treecg/geospatial-bucketizer@visa/bivariate-mapbox-map@zalastax/nolb-_turazure-maps-indoorarlas-web-contirbutorsarlas-web-contributorsgeocoder-geojsongeo-fakergeo_radius_scrapergeojson-polygon-labelsgeoexcesiumvectortilechangeset-mapcommon-geohash-parentcitydna-app-townhall-experiencestatic-maps-overlaytilebasetilestrata-s3tilestrata-warmerunl-corevue-openlayer-sailingmapvue-openlayer-slmapvue-openlayer-slmap1vue-openlayers-dvue-openlayer-darkvue-openlayer-huhongxunvue-openlayer-luoxuvue-openlayer-lxvue-openlayer-mapvue-openlayer-maplxvue-openlayer-mapslvue-openlayervue-openlayer-basevue-openlayer-baseluoyymap-turfvin3boxmpilot-uimgl-circle-radiusopenflights-datareact-cismapreact-cismap-experimentalnebula.glrescape-osmrescape-placerescape-geospatial-sankeyrescape-helpersrescape-webreal-changesets-parserproximiio-js-libraryshape2geohashskeleton-keyholesharedstreetsslf-js@eox/jsonform@hongtu-next/util@hive9/mapbox-gl-mock@imaginerio/diachronic-atlas@geonet/generate-raster-footprint@globalfishingwatch/deck-layers@geostarters/common@geostarters/icgc-svelte-components@keys2design/carto-react-workers@kepler.gl/reducers@strategies/maplibsasakidev
7.2.0

12 months ago

7.1.0

1 year ago

7.1.0-alpha.70

1 year ago

7.0.0

2 years ago

7.1.0-alpha.7

1 year ago

7.0.0-alpha.116

2 years ago

7.0.0-alpha.115

2 years ago

7.0.0-alpha.114

2 years ago

7.0.0-alpha.113

2 years ago

7.0.0-alpha.111

2 years ago

7.0.0-alpha.110

2 years ago

7.0.0-alpha.1

2 years ago

7.0.0-alpha.2

2 years ago

7.0.0-alpha.0

3 years ago

6.5.0

4 years ago

6.4.0

5 years ago

6.3.0

5 years ago

6.2.0

5 years ago

6.2.0-alpha.3

5 years ago

6.2.0-alpha.2

5 years ago

6.2.0-alpha.0

6 years ago

6.2.0-alpha.1

6 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.1.5

8 years ago

5.1.4

8 years ago

5.1.0

8 years ago

5.0.4

8 years ago

5.0.0

8 years ago

4.7.3

8 years ago

4.7.1

8 years ago

4.7.0

8 years ago

4.6.0

8 years ago

4.5.2

8 years ago

4.5.1

8 years ago

4.5.0

8 years ago

4.4.0

9 years ago

4.3.0

9 years ago

4.2.0

9 years ago

4.1.0

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.14.0

9 years ago

3.13.0

9 years ago

3.10.5

9 years ago

3.10.3

9 years ago

3.10.0

9 years ago

3.7.5

9 years ago

3.7.3

9 years ago

3.7.2

9 years ago

3.7.0

9 years ago

3.6.3

9 years ago

3.6.1

9 years ago

3.5.3

9 years ago

3.5.2

9 years ago

3.3.3

9 years ago

3.1.1

9 years ago

3.0.16

9 years ago

3.0.15

9 years ago