Learn R Programming

gdalraster (version 1.11.1)

g_area: Compute the area of a geometry

Description

g_area() computes the area for a LinearRing, Polygon or MultiPolygon. Undefined for all other geometry types (returns zero).

Usage

g_area(wkt)

Value

Numeric scalar. Area of the geometry or 0.

Arguments

wkt

Character. OGC WKT string for a simple feature geometry.