fix for spatial coverage calculation
@@ -263,10 +263,12 @@ def get_box_info(nc_dataset):
original_cs.ImportFromWkt(projection_import_string_dict.get('text'))
crs_transform = osr.CoordinateTransformation(original_cs, wgs84_cs)
box_info['westlimit'], box_info['northlimit'] = crs_transform.TransformPoint(
- original_box_info['westlimit'], original_box_info['northlimit'])[:2]
+ float(original_box_info['westlimit']),
+ float(original_box_info['northlimit']))[:2]
box_info['eastlimit'], box_info['southlimit'] = crs_transform.TransformPoint(
- original_box_info['eastlimit'], original_box_info['southlimit'])[:2]
+ float(original_box_info['eastlimit']),
+ float(original_box_info['southlimit']))[:2]
except Exception:
pass
