FUNCTION  fHtmGetCenterPoint

Converts an HTMID to a (x,y,z) vector of the HTM centerpoint


Parameters:
  • @htmid bigint, the htmid of the trixel
    Returns VertexTable(x float, y float, z float) of a single row with the unit vector of the trixel center. select * from fHtmToCenterPoint(dbo.fHtmXyz(.57735,.57735,.57735))
    gives: 0.577350269189626, 0.577350269189626, 0.577350269189626
  • Input and output parameters

    nametypelengthinoutpnum
    @htmidbigint8input1
    xfloat8output1
    yfloat8output2
    zfloat8output3