adding spatial index
fixes to gis.py mainly