Raster¶
In [1]:
Copied!
import portgeo as pg
import portgeo as pg
In [3]:
Copied!
m = pg.Map()
m
m = pg.Map()
m
Out[3]:
Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…
In [4]:
Copied!
filename = "https://github.com/opengeos/datasets/releases/download/raster/dem_90m.tif"
filename = "https://github.com/opengeos/datasets/releases/download/raster/dem_90m.tif"
In [5]:
Copied!
m.add_raster(filename, colormap="terrain", opacity=0.5, name="dem_90m")
m.add_raster(filename, colormap="terrain", opacity=0.5, name="dem_90m")
In [6]:
Copied!
url = "https://eoimages.gsfc.nasa.gov/images/imagerecords/77000/77506/erie_tmo_2012081.jpg"
bounds = ((40.9, -83.6), (43.3, -78.8))
m.add_image(url, bounds=bounds, opacity=0.5, name="erie_tmo_2012081.jpg")
url = "https://eoimages.gsfc.nasa.gov/images/imagerecords/77000/77506/erie_tmo_2012081.jpg"
bounds = ((40.9, -83.6), (43.3, -78.8))
m.add_image(url, bounds=bounds, opacity=0.5, name="erie_tmo_2012081.jpg")
In [7]:
Copied!
url = "https://videos.pexels.com/video-files/4328709/4328709-uhd_2560_1440_30fps.mp4"
bounds = ((0, 0), (2, 3))
m.add_video(url, bounds=bounds)
url = "https://videos.pexels.com/video-files/4328709/4328709-uhd_2560_1440_30fps.mp4"
bounds = ((0, 0), (2, 3))
m.add_video(url, bounds=bounds)
In [ ]:
Copied!