6.5.0 • Published 1 day ago

@turf/area v6.5.0

Weekly downloads
250,254
License
MIT
Repository
github
Last release
1 day 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-941@hfribeiro/ska-plotly@hoangho1147/hoang-sankey-plotly@hongtu-next/core@hongtu-next/util@giangtong/plotly.js@giscience/ohsome2x@giscube/geoportal@jayarjo/seeder@loudsrl/turf@loudsrl/unkink-polygon@newcrom/plotly.js@nebula.gl/edit-modes@nextgis/leaflet-measure@naivemap/mapbox-gl-polygon-morpher@mybus/spatial@kausal/plotly-custom@kyfe/kyemap-js@letsnova/leaflet-measure@funcate/leaflet-measure-sigweb@giliweb/plotly.js@globalfishingwatch/map-components@globalfishingwatch/timebar@macoskolab/vitessce@ljagis/react-mapping@ljagis/react-mapping-components@mapbox/osm-compare@mwater/expressions@muros-ct/plotly.jsyymap-turfzk-cesiumzonalzxmap-uizxmap-ui-v2zimap-apizimap-jszimap-uix-hongtu-utilxbsj-rendererxbsj-xe2@skymapglobal/map-measurement@skyeer/mapbox-gl-draw@tristanhoffmann/leaflet-measure@ttungbmt/leaflet-measure@ttfn/mapbox-gl-draw@turf/turf@turf/unkink-polygon@turf/nearest-neighbor-analysis@turf/isobands@turf/quadrat-analysis@varlab-ucf/nebulagl-edit-modes@onsmart/map@supermap/vue-iclient-mapboxgl@supermap/vue-iclient-leafletdxcr-vue-cesiumneonmaps-base@q25a25q/gis@nsc-earth-2/calculation@nsc-earth-2/gim@nsc-earth-2/measure@nsc-earth-v2/measure@norfield/core@norfield/polygon@rdmr-eu/rdf-geopackage@scrypted/nvr@seasketch/geoprocessing@plasmastrapi/geometry@platyplus/gis@ragone/edit-modes@ryry886/mapbox-gl-measure@sentinel-hub/sentinelhub-jsngx-location-viewer-test@zalastax/nolb-_tur@emuanalytics/flow-rdf-core-test@uoa-eresearch/plotly.js@vitessce/gl@syhr/vue-cesium@wayz/react-gl@tuliu/tuliu-base-map@terralego/core@supermap/vue-iclient@theseam/ui-common@emuanalytics/flow-rdf-core@zoupers/vue-iclient-mapboxgl@ediphi/takeoff-modelsopenlayermaplxns-mapbox-gl-draw@flowmap.blue/coreexample-eez-twoexample-project-fiveexample-project-fooexample-project-worldagile-cesium
7.0.0-alpha.114

1 month ago

7.0.0-alpha.113

3 months ago

7.0.0-alpha.111

3 months ago

7.0.0-alpha.110

4 months ago

7.0.0-alpha.1

7 months ago

7.0.0-alpha.2

7 months ago

7.0.0-alpha.0

1 year ago

6.5.0

3 years ago

6.4.0

3 years ago

6.3.0

3 years ago

6.2.0

3 years ago

6.2.0-alpha.3

3 years ago

6.2.0-alpha.2

4 years ago

6.2.0-alpha.0

4 years ago

6.2.0-alpha.1

4 years ago

6.0.1

6 years ago

6.0.0

6 years ago

5.1.5

6 years ago

5.1.0

6 years ago

5.0.4

6 years ago

4.7.3

7 years ago

4.7.1

7 years ago

4.7.0

7 years ago

4.6.0

7 years ago

4.5.2

7 years ago

4.5.1

7 years ago

4.5.0

7 years ago

4.4.0

7 years ago

4.3.0

7 years ago

4.2.0

7 years ago

4.1.0

7 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.14.0

7 years ago

3.13.0

7 years ago

3.10.0

7 years ago

3.7.5

7 years ago

3.7.3

7 years ago

3.7.1

7 years ago

3.6.3

7 years ago

3.5.2

8 years ago

3.5.1

8 years ago

3.3.3

8 years ago

3.0.16

8 years ago

3.0.15

8 years ago