Skip to content

Interactive map

Load package

from Godream.plotimg import show_map, overlay_map

show_map()

Default location is in Thailand.

There are Drawing tools to create vector data like point, line, ploygon in this interactive map. It can seach location by name or zoom in, zoom out, and pan on the map. In addition, This tools have XYZtile map availabe on the Top right of the map that you can change. It composes of terrain map, hybrid map and sattellite map from Google, Open Street Map, and Gistda service.

show_map()
Make this Notebook Trusted to load map: File -> Trust Notebook

Can assign lat/lon or zoom level into interactive map

lat = (9.133)
lon = (99.324)

show_map(lat, lon, zoom = 12)

123

overlay_map()

  • Display raster data or vector data on Interactive Map

This tools is suitable for CRS(EPSG:4326)

raster_path=['D:\DGEO\data\S2_image3.tif'] # raster
vector_path = ['D:\DGEO\data\Rectan.geojson'] # vector
# display input file on interative map
overlay_map(vector_file=vector_path, raster_file=raster_path)

123

OR Display only raster images / vector images

raster_paths=["D:\DGEO\data\Landsat8_4326.TIF",'D:\DGEO\data\S2_image3.tif' ]

overlay_map(raster_file=raster_paths, zoom =9)

123

vector_paths=['D:\DGEO\data\Rectan.geojson','D:\DGEO\data\Triangle.geojson' ]

overlay_map(vector_file=vector_paths, zoom = 9)
123