{"version":"1.0","type":"rich","title":"Click on a raster layer in the QGIS table of contents, and then run this script. The corners of the bounding box of the layer will be printed to the console in the project's projection system. This is useful for supplying these values to Leaflet when using `imageOverlay`, which requires the top left and bottom right coordinates.","description":"This script prints the geographic bounding-box corners of a raster layer to the QGIS console in the project’s projection system, converting them from pixel coordinates via the GDAL GeoTransform and reprojecting them using the OSR `CoordinateTransformation`. It reads the active layer’s source path with `gdal.Open`, extracts the raster dimensions and geotransform, and transforms each corner from the layer’s spatial reference to its geographic counterpart. The output provides the top-left and bottom-right coordinates needed for a Leaflet `imageOverlay`.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-41b84387be8497c2c4ee?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}