Further refinement of geomhashstring.sql

still needs modified for taking arguments... .