不同時期數值地形模型差異分析 getDiffData

輸入參數

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

回傳資料結構

參數名稱 參數說明
gridcount Wkt內包含格點數
diffdata 格點集合內容

diffdata資料結構

參數名稱 參數說明
x 格點x作標值(TWD97座標)
y 格點y作標值(TWD97座標)
lon 格點lon作標值(WGS84座標)
lat 格點lat作標值(WGS84座標)
dem dataB dem值減去dataA dem值
degree dataB degree值減去dataA degree值

使用範例

Web API URL
https://dtm.moi.gov.tw/services/dtmdiff/dtmdiff.asmx/getDiffData?apikey=&wkt=POLYGON((121.44342878048941 24.270556203206937,121.44342878048941 24.270368448575894,121.4435897130303 24.270368448575894,121.4435897130303 24.270556203206937,121.44342878048941 24.270556203206937))&dataA=TW_DLA_20010814_20061226_20M_3826_DEM&dataB=TW_DLA_20110101_20161101_20M_3826_DEM
回傳json字串
{"gridcount":"6","diffdata":[{"x":"295020","y":"2685020","lon":"121.443420","lat":"24.270206","dem":"12.65","degree":"-0.042454"},{"x":"295020","y":"2685040","lon":"121.443420","lat":"24.270388","dem":"9.53","degree":"-3.395947"},{"x":"295020","y":"2685060","lon":"121.443420","lat":"24.270569","dem":"5.38","degree":"-2.578621"},{"x":"295040","y":"2685020","lon":"121.443619","lat":"24.270206","dem":"16.25","degree":"-0.669109"},{"x":"295040","y":"2685040","lon":"121.443619","lat":"24.270388","dem":"13.96","degree":"-5.028568"},{"x":"295040","y":"2685060","lon":"121.443619","lat":"24.270567","dem":"-6.62","degree":"-5.071228"}]}