Options
All
  • Public
  • Public/Protected
  • All
Menu

Dependencies free QGIS ellipsoidal area calculation reproduced in JavaScript.

example
import { calculateArea, geojsonArea } from '@nextgis/area';

const area = geojsonArea(geojson);
const area2 = calculateArea([
[51.82, 63.8],
[43.48, 55.62],
[75.38, 59.13],
[51.82, 63.8], // the first and last positions MUST contain identical values
]);

Index

Functions

  • calculateArea(points: Position[]): number
  • geojsonArea(geojson: GeoJSON): number

Generated using TypeDoc