gstat internal functions
these functions are not meant to be called by users directly
Edzer J. Pebesma