import json, webbrowser from osgeo import gdal, gdal_array ds = gdal.Open("/vsicurl/http://landsat-pds.s3.amazonaws.com/L8/225/071/LC82250712015212LGN00/LC82250712015212LGN00_B4.TIF") jsInfo = gdal.Info(ds, format='json') ds = None jsExtent = jsInfo['wgs84Extent'] js_to_geojson_io = { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {}, "geometry": jsExtent } ] } v_json = json.dumps(js_to_geojson_io) print v_json url = "http://geojson.io/#data=data:application/json,{0}".format( v_json ) webbrowser.open( url ) # Open geojson.io