7.2.0 • Published 7 months ago

@turf/area v7.2.0

Weekly downloads
250,254
License
MIT
Repository
github
Last release
7 months ago

@turf/area

area

Takes one or more features and returns their area in square meters.

Parameters

  • geojson GeoJSON input GeoJSON feature(s)

Examples

var polygon = turf.polygon([[[125, -15], [113, -22], [154, -27], [144, -15], [125, -15]]]);

var area = turf.area(polygon);

//addToMap
var addToMap = [polygon]
polygon.properties.area = area

Returns number area in square meters


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/area

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

$ npm install @turf/turf
@bimenergy/be-format-utilsairsiders-mapping-toolgisinfo-gmapvue-3dcompzxmap-ui-supermap@infinitebrahmanuniverse/nolb-_turthing-it-server@everything-registry/sub-chunk-941vue-leaflet-measurex-hongtu-utilxbsj-rendererxbsj-xe2vra-ui-componentsvtxf-renderervtxf-xe2vit-sjmapserver-ng-dashboardjmapcloud-ng-dashboardjoymap-jsiphaeton-idly-glkaze-cesium-helper@bdh-gis/mapbox-gl-measureugis-coretongmap-jsunl-map-jsvue-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-baseluo@akuno/vue-cesium@bmap-turf/turf@beyondtracks/nsw-rfs-geojson-feeds@beyondtracks/nsw-rfs-majorincidents-geojson@cartolab/elements@clean-energy-associates/emp-isometric@cesium-extends-cang/measure@cesium-extends/measure@acpaas-ui-widgets/ngx-location-viewer@abi-software/flatmap-viewer@abovesurveying/leaflet-measure@deck.gl-community/editable-layers@dbrnz/flatmap-viewer@dhilt/plotly.js@dhis2/maps-gl@crunchr/plotly.jsyymap-turfzimap-apizimap-jszimap-uizonalvin3boxzk-cesiumzxmap-uizxmap-ui-v2@ragone/edit-modes@ediphi/takeoff-models@flowmap.blue/core@hoangho1147/hoang-sankey-plotly@hongtu-next/core@hongtu-next/util@hfribeiro/ska-plotly@funcate/leaflet-measure-sigweb@giliweb/plotly.js@giangtong/plotly.js@giscience/ohsome2x@giscube/geoportal@globalfishingwatch/map-components@kyfe/kyemap-js@ljagis/react-mapping@ljagis/react-mapping-components@loudsrl/turf@loudsrl/unkink-polygon@letsnova/leaflet-measure@macoskolab/vitessce@mwater/expressions@mybus/spatial@muros-ct/plotly.js@mapbox/osm-compare@newcrom/plotly.js@nextgis/leaflet-measure@nebula.gl/edit-modes@naivemap/mapbox-gl-polygon-morpher@emuanalytics/flow-rdf-core@emuanalytics/flow-rdf-core-test@kausal/plotly-custom@jayarjo/seeder@norfield/polygon@norfield/core@rdmr-eu/rdf-geopackage@q25a25q/gis
7.2.0

7 months ago

7.1.0

11 months ago

7.1.0-alpha.70

11 months ago

7.0.0

1 year ago

7.1.0-alpha.7

1 year ago

7.0.0-alpha.116

1 year ago

7.0.0-alpha.115

1 year ago

7.0.0-alpha.114

1 year ago

7.0.0-alpha.113

1 year ago

7.0.0-alpha.111

1 year 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

4 years ago

6.3.0

4 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

5 years ago

6.2.0-alpha.1

5 years ago

6.0.1

7 years ago

6.0.0

7 years ago

5.1.5

8 years ago

5.1.0

8 years ago

5.0.4

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

8 years ago

4.3.0

8 years ago

4.2.0

8 years ago

4.1.0

8 years ago

4.0.2

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.14.0

8 years ago

3.13.0

8 years ago

3.10.0

8 years ago

3.7.5

8 years ago

3.7.3

9 years ago

3.7.1

9 years ago

3.6.3

9 years ago

3.5.2

9 years ago

3.5.1

9 years ago

3.3.3

9 years ago

3.0.16

9 years ago

3.0.15

9 years ago