FUNCTION  fHtmCoverRegionAdvanced

Returns tables of HTMID ranges with flags designating inner/oouter status

Returns table of HTMID ranges covering a designated region. The code generates two different types of cover, indicated by its status
  • 0: OUTER, which fully covers the region,
  • 1: INNER, which contains trixels fully inside the region. For the region syntax see the description of fHtmCoverRegion.
    Returns table:
  • htmidStart bigint, 21-deep HtmID range start
  • htmidEnd bigint, 21-deep HtmID range end
  • innerFlag int, 0:outer, 1:inner

    select * from fHtmCoverRegionAdvanced('REGION CIRCLE CARTESIAN -.996 -.1 0 5')

    see also fHtmCoverRegion, fHtmCoverRegionError
  • Input and output parameters

    nametypelengthinoutpnum
    @regionnvarchar-1input1
    @regionsysname-1input1
    innerFlagbit1output3
    htmidStartbigint8output1
    htmidEndbigint8output2