diff --git a/src/mintpy/save_kmz.py b/src/mintpy/save_kmz.py index 4e78222b4..bada5d836 100644 --- a/src/mintpy/save_kmz.py +++ b/src/mintpy/save_kmz.py @@ -233,6 +233,10 @@ def write_kmz_overlay(data, meta, out_file, inps): """ south, north, west, east = ut.four_corners(meta) + # convert from UTM to WGS84 when necessary, as KML only natively supports WGS84 + if "UTM_ZONE" in meta.keys(): + north, east = ut.utm2latlon(meta, east, north) + south, west = ut.utm2latlon(meta, west, south) # 1. Make PNG file - Data print('plotting data ...')