tree conversion
convert geography tree
better generic functions