PostGIS
2.5.7dev-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 997 of file ptarray.c.
References getPoint2d_cp(), POINTARRAY::npoints, POINT2D::x, pixval::x, and POINT2D::y.
Referenced by lwgeom_subdivide_recursive(), lwpoly_area(), ptarray_isccw(), and test_ptarray_signed_area().