turf-area

calculate the area of a polygon or multipolygon feature

Turf packages are now namespaced: please use @turf/area instead
Last updated 10 years ago by tmcw .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install turf-area 
SYNC missed versions from official npm registry.

turf-area

build status

calculate the area of a polygon or multipolygon feature

turf.area(input)

Given any kind of GeoJSON feature, return the area of that feature, in square meters.

Parameters

parameter type description
input GeoJSON

Example

var polygons = turf.featurecollection([
  turf.polygon([[[0,0],[10,0],[10,10],[0,10],[0,0]]]),
  turf.polygon([[[10,0],[20,10],[20,20], [20,0]]])]);
var area = turf.area(polygons);
//=area

Installation

Requires nodejs.

$ npm install turf-area

Tests

$ npm test

Current Tags

  • 3.0.7-canary.ae89c8b3                                ...           canary (10 years ago)
  • 3.0.12                                ...           latest (10 years ago)

12 Versions

  • 3.0.12 [deprecated]           ...           10 years ago
  • 3.0.10 [deprecated]           ...           10 years ago
  • 3.0.7-canary.ae89c8b3                                ...           10 years ago
  • 3.0.7 [deprecated]           ...           10 years ago
  • 3.0.6 [deprecated]           ...           10 years ago
  • 3.0.5-canary.4f73aa1a                                ...           10 years ago
  • 3.0.1 [deprecated]           ...           11 years ago
  • 3.0.0-canary.7879bf6c                                ...           11 years ago
  • 3.0.0-canary.2f5f7167                                ...           11 years ago
  • 1.1.1 [deprecated]           ...           12 years ago
  • 1.1.0 [deprecated]           ...           12 years ago
  • 1.0.0 [deprecated]           ...           12 years ago
Downloads
Total 22
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 7
Last Month 13
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE