logo-header

 
 

syntax

definition

area(polygonset, valuesunit) calculates the surface of the polygonset argument. The resulting values unit is configured as second argument.

If the resulting value of the area function is negative, it indicates the sequence of the points in the polygon geometry does not match with the following rules.

applies to

Point data item polygonset with fpoint or dpoint value type and composition type polygon.

conditions

The metric of the values unit specified must match with the square of the metric of the coordinates in the coordinate system.

since version

5.15

example

attribute<m2> surface (District) := area(district/geometry, m2);
district/geometry   surface
{21 {403025, 113810}{4 1003100
{17 {400990, 113269}{4 474460
{19 {401238, 115099}{4} 1246460
domain District, nr of rows = 3 


If you would want to cast the outcome into, for example, hectares instead of m2

attribute<ha> surface (District) := area(district/geometry, m2) / 10000 [m2 / Ha];


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904