Calculate the area of a polygon with holes in square meters. Exterior ring area minus the sum of all hole areas.
rings
Float64Array
ringSizes
Uint32Array
Each ring must be closed (first point = last point).
Calculate the area of a polygon with holes in square meters. Exterior ring area minus the sum of all hole areas.
Arguments
rings: FlatFloat64Arraycontaining all rings concatenated.ringSizes:Uint32Arraywhere each element is the number of coordinates (not points) in each ring. First ring = exterior, rest = holes.Each ring must be closed (first point = last point).