Source: https://www.itreetools.org/hydro/resources/2005-wanghassettendreny-compgeo-objtop-code.pdf