PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
double ptarray_signed_area | ( | const POINTARRAY * | pa | ) |
Returns the area in cartesian units.
Area is negative if ring is oriented CCW, positive if it is oriented CW and zero if the ring is degenerate or flat. http://en.wikipedia.org/wiki/Shoelace_formula
Definition at line 998 of file ptarray.c.
References getPoint2d_cp(), POINTARRAY::npoints, pixval::x, POINT2D::x, and POINT2D::y.
Referenced by lwpoly_area(), ptarray_isccw(), and test_ptarray_signed_area().