取得路線剖面座標資訊 getpathProfile

輸入參數

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

回傳資料結構

參數名稱 參數說明
count 間隔點數
pointArray 座標陣列
m 距離
x 座標x
y 座標y
z 座標z

使用範例

Web API URL
https://dtm.moi.gov.tw/services/pathprofile/pathprofile.asmx/getPathProfile?apikey=&wkt=LINESTRING(121.69758914500001 24.390410698789065,121.69904826670411 24.390410698789065)&data=TW_DLA_20010814_20061226_20M_3826_DEM&stepSizeValue=100
回傳json字串
{"count":"3","pointArray":[{"m":"0.0","x":"320759.25","y":"2698439.0","z":"1709.9768"},{"m":"100.0","x":"320859.25","y":"2698439.5","z":"1702.2853"},{"m":"148.01126","x":"320907.25","y":"2698439.8","z":"1694.9623"}]}