網站頁面
課程
成員
一般
主題 1
主題 2
主題 3
主題 4
主題 5
主題 6
主題 7
主題 8
主題 9
主題 10
主題 11
主題 12
主題 13
主題 14
主題 15
主題 16
主題 17
主題 18
Lesson12:Tililing Raster in GoogleMap
Tiling Raster in Google Earth
Tililing Raster in Google Map
Google地圖的特點就是通過鼠標拖動,就可以看到不同位置的圖片,這些圖片是在滑鼠拖曳時計算位置,同時顯示出許多小圖的結果,就如同Fireworks在編輯大圖時的方法,因為大地圖是不可能一次整張大圖顯示出來的,大圖要分割成很多個小圖。最基本的想法就是透過編寫滑鼠的onmouse_down,onmouse_up,onmouse_move的javacript,然後通過AJAX計算出圖片資料,然後再返回頁面用javascript將這些圖片顯示出來。
GDAL2Tiles -- Raster Maps Tile Publishing, KML SuperOverlay Generator官網
Step1:8
官網安裝FWTools: Open Source GIS Binary Kit for Windows 下載
Step2:
Save the file gdal2tiles.py
Step3:
執行 "FWTools Shell" command:
C:\Program Files\FWTools2.2.1>python c:/gdal2tiles.py c:/spot.jpg c:/so
最好在C的根目錄上執行
http://gis.nhlue.edu.tw/gmap/so.html
範例1:古地圖
範例2:中研院堡圖
範例3:GeoGarage spatial imageNOAA範例 http://demo.geogarage.com/noaa/
map.addControl(new GMapTypeControl()); //the new tiles have their own type along with the existing Google ones. |