code: def rectangle_geo_array(rectangle, map_canvas):
      
  
      destination_crs = QgsCoordinateReferenceSystem()
      destination_crs.createFromSrid(4326)
  
      source_crs = map_canvas.mapSettings().destinationCrs()
  
      return extent_to_array(rectangle, source_crs, destination_crs)
docs: Obtain the rectangle in EPSG:4326.
  
      :param rectangle: A rectangle instance.
      :type rectangle: QgsRectangle
  
      :param map_canvas: A map canvas instance.
      :type map_canvas: QgsMapCanvas
  
      :returns: A list in the form [xmin, ymin, xmax, ymax] where all
          coordinates provided are in Geographic / EPSG:4326.
      :rtype: list
  
      .. note:: Delegates to extent_to_array()