取得單點坡向值 getAspectValue

輸入參數

參數名稱 參數說明
apikey 服務單位發給的認證碼
wkt Well-known text標記語言
data 數值資料

回傳資料結構

參數名稱 參數說明
aspect_direction 坡向
desc 說明文字
aspect_angle 坡向數值

坡向分級數值表

aspect_direction desc aspect_angle color
Flat 平地 -1
N 0-22.5
NE 東北 22.5-67.5
E 67.5-112.5
SE 東南 112.5-157.5
S 157.5-202.5
SW 西南 202.5-247.5
W 西 247.5-292.5
NW 西北 292.5-337.5
N 337.5-360

使用範例

Web API URL
https://dtm.moi.gov.tw/services/aspect/aspect.asmx/getAspectValue?apikey=&wkt=POINT(121.59875488281251 24.67666015625)&data=TW_DLA_20010814_20061226_20M_3826_DEM
回傳json字串
{"aspect_direction":"S","desc":"南","aspect_angle":"166.382201"}

取得坡向分級分析結果 getAspectClassify

輸入參數

參數名稱 參數說明
apikey 服務單位發給的認證碼
wkt Well-known text標記語言
data 數值資料

回傳資料結構

參數名稱 參數說明
area_length 面積或長度
unit 單位
cellArea 格點面積
classify

Classify資料結構

參數名稱 參數說明
cellRatio 包含格點所占的百分比
cellArea 格點面積
classid 格點坡向分級類別
desc 說明文字

使用範例

Web API URL
https://dtm.moi.gov.tw/services/aspect/aspect.asmx/getAspectClassify?apikey=&wkt=POLYGON((120.70886230468751 24.19326171875,120.70886230468751 24.1712890625,120.72534179687501 24.1712890625,120.72534179687501 24.19326171875,120.70886230468751 24.19326171875))&data=TW_DLA_20010814_20061226_20M_3826_DEM
回傳json字串
{"area_length":"4074387.815559","Unit":"平方公尺","cellArea":"4032000.0","classify":[{"cellRatio":"0.00019841","cellArea":"800.0","classid":"Flat","desc":"平地"},{"cellRatio":"0.00654762","cellArea":"26400.0","classid":"N","desc":"北"},{"cellRatio":"0.01001984","cellArea":"40400.0","classid":"NE","desc":"東北"},{"cellRatio":"0.03720238","cellArea":"150000.0","classid":"E","desc":"東"},{"cellRatio":"0.10277778","cellArea":"414400.0","classid":"SE","desc":"東南"},{"cellRatio":"0.28035714","cellArea":"1130400.0","classid":"S","desc":"南"},{"cellRatio":"0.31597222","cellArea":"1274000.0","classid":"SW","desc":"西南"},{"cellRatio":"0.21845238","cellArea":"880800.0","classid":"W","desc":"西"},{"cellRatio":"0.02847222","cellArea":"114800.0","classid":"NW","desc":"西北"}]}

取得坡向分級圖檔 getImage

輸入參數

參數名稱 參數說明
apikey 服務單位發給的認證碼
wkt Well-known text標記語言
data 數值資料

回傳資料結構

參數名稱 參數說明
imgeURL png圖檔URL

使用範例

Web API URL
https://dtm.moi.gov.tw/services/aspect/aspect.asmx/getImage?apikey=&wkt=POLYGON((120.60534502442381 23.44597317338867,120.60534502442381 23.41301418901367,120.59435869629881 23.41301418901367,120.59435869629881 23.44597317338867,120.60534502442381 23.44597317338867))&data=TW_DLA_20010814_20061226_20M_3826
回傳json字串
{"imageURL":"https://dtm.moi.gov.tw/services/aspect/WMSImages/1f4353d1-c8d7-4ae7-b1cb-86321bb54f91.png"}

取得坡向分級影像 getImageFile

輸入參數

參數名稱 參數說明
apikey 服務單位發給的認證碼
wkt Well-known text標記語言
data 數值資料

回傳資料結構

參數名稱 參數說明
imgeURL png圖檔URL
worldFileURL pgw檔案URL
kmzURL kmz檔案URL
bbox Bounding box 數值
legendGraphURL 圖例說明圖檔URL
legendDescription 圖例說明文字

使用範例

Web API URL
https://dtm.moi.gov.tw/services/aspect/aspect.asmx/getImageFile?apikey=&wkt=POLYGON((121.03845214843751 24.292138671875,121.03845214843751 24.2866455078125,121.07141113281251 24.2866455078125,121.07141113281251 24.292138671875,121.03845214843751 24.292138671875))&data=TW_DLA_20010814_20061226_20M_3826_DEM
回傳json字串
{"imageURL":"https://dtm.moi.gov.tw/services/aspect/WMSImages/b5ed4b55-207c-4fc2-b557-9bfef65d1180.png","worldFileURL":"https://dtm.moi.gov.tw/services/aspect/ImageFile/b5ed4b55-207c-4fc2-b557-9bfef65d1180.pgw","kmz":[{"url":"https://dtm.moi.gov.tw/services/aspect/ImageFile/5637846c-c152-4c3b-9665-8101573cfbb8.kmz"}],"bbox":"121.038452,24.286646,121.071411,24.292139","legendGraphURL":"https://dtm.moi.gov.tw/services/aspect/ImageFile/LegendGraph/LegendGraph.png","legendDescription":"圖例說明"}