fix NameError: global name 'extent_to_geo_array' is not defined