FUNCTION  fRegionAreaPatch

Returns the area of a patch, defined by its regionid, convexid and patch

First computes the area of the spherical polygon of the same vertices, using Girard's formula of spherical excess. Then adjusts the area with the signed areas of the semilunes formed by the arcs.
Parameters:
  • @regionid -- pointer to the region
  • @convexid -- id of the convex
  • @patch -- patch identifier
  • Return area in square degrees SELECT dbo.fRegionAreaPatch(123456,0,1)
  • Input and output parameters

    nametypelengthinoutpnum
    @patchint4input3
     float8input0
    @regionidbigint8input1
    @convexidbigint8input2