Raster
In [1]:
Copied!
#Week 12 A_visualizing a raster images tiles with the incorporated function in the geosdemo.py
#Week 12 A_visualizing a raster images tiles with the incorporated function in the geosdemo.py
In [2]:
Copied!
import geosdemo
import geosdemo
In [3]:
Copied!
url = "https://opendata.digitalglobe.com/events/mauritius-oil-spill/post-event/2020-08-12/105001001F1B5B00/105001001F1B5B00.tif"
url = "https://opendata.digitalglobe.com/events/mauritius-oil-spill/post-event/2020-08-12/105001001F1B5B00/105001001F1B5B00.tif"
In [4]:
Copied!
m = geosdemo.Map()
m
m = geosdemo.Map()
m
this is what the user is providing:{'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True} {'scroll_wheel_zoom': True, 'layers_control': True} {'scroll_wheel_zoom': True, 'layers_control': True, 'fullscreen_control': True}
In [5]:
Copied!
m.add_raster(url, name='test')
m
m.add_raster(url, name='test')
m
In [6]:
Copied!
url2 ='https://github.com/opengeos/data/raw/main/raster/landsat7.tif'
url2 ='https://github.com/opengeos/data/raw/main/raster/landsat7.tif'
In [7]:
Copied!
m.add_raster(url2, fit_bounds=False, name ='Landsat')
m
m.add_raster(url2, fit_bounds=False, name ='Landsat')
m
In [8]:
Copied!
url3 = 'https://github.com/opengeos/data/raw/main/raster/srtm90.tif'
url3 = 'https://github.com/opengeos/data/raw/main/raster/srtm90.tif'
In [9]:
Copied!
m.add_raster(url3,name="DEM" )
m.add_raster(url3,name="DEM" )
In [10]:
Copied!
m
m
In [ ]:
Copied!
Last update:
2023-05-11