FUNCTION  fHtmCoverRegion

Returns HTMID range table covering the designated region

Regions have the syntax
  circleSpec  =>     CIRCLE J2000 ra dec  radArcMin  
| CIRCLE CARTESIAN x y z radArcMin
rectSpec => RECT J2000 {ra dec }2
| RECT CARTESIAN {x y z }2
polySpec => POLY J2000 {ra dec }3+
| POLY CARTESIAN {x y z }3+
hullSpec => CHULL J2000 {ra dec }3+
| CHULL CARTESIAN {x y z }3+
convexSpec => CONVEX { x y z D}*
coverSpec => circleSpec | rectSpec | polySpec | hullSpec | convexSpec
regionSpec => REGION {coverSpec}* | coverspec
for the circle the REGION prefix is optional.

returns trixel table(start bigint, end bigint)
select * from dbo.fHtmCoverRegion('REGION CIRCLE CARTESIAN -.996 -.1 0 5')
see also fHtmCoverRegionError

Input and output parameters

nametypelengthinoutpnum
@regionnvarchar-1input1
@regionsysname-1input1
HtmIDStartbigint8output1
HtmIDEndbigint8output2