取得縱橫斷面座標資訊 getLineProfile

輸入參數

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

使用範例

Web API URL
http://land.colife.org.tw/services/lineprofile/lineprofile.asmx/getLineProfile?apikey=&wkt=LINESTRING(120.74336624145509 23.730462646484376,120.74499702453615 23.727973556518556)&data=TW_DLA_20010814_20061226_20M_3826&stepSizeValue=100
回傳json字串
{"count":"5","lineArray":[[{"line_id":"1","line_x":"223786.451460708","line_y":"2625115.05894144","line_z":"538.61"},{"line_id":"1","line_x":"223806.077933426","line_y":"2625147.73039434","line_z":"526.17"},{"line_id":"1","line_x":"223825.704406144","line_y":"2625180.40184725","line_z":"513.73"},{"line_id":"1","line_x":"223845.330878862","line_y":"2625213.07330015","line_z":"514.18"},{"line_id":"1","line_x":"223864.95735158","line_y":"2625245.74475306","line_z":"504"},{"line_id":"1","line_x":"223884.583824298","line_y":"2625278.41620596","line_z":"494.84"}],[{"line_id":"2","line_x":"223835.516980945","line_y":"2625033.38009657","line_z":"557.28"},{"line_id":"2","line_x":"223855.143453663","line_y":"2625066.05154947","line_z":"550.94"},{"line_id":"2","line_x":"223874.769926381","line_y":"2625098.72300238","line_z":"532.51"},{"line_id":"2","line_x":"223894.396399099","line_y":"2625131.39445528","line_z":"515.99"},{"line_id":"2","line_x":"223914.022871817","line_y":"2625164.06590819","line_z":"517.35"},{"line_id":"2","line_x":"223933.649344535","line_y":"2625196.73736109","line_z":"515.65"}],[{"line_id":"3","line_x":"223884.583057471","line_y":"2624951.70143048","line_z":"573"},{"line_id":"3","line_x":"223904.209530189","line_y":"2624984.37288338","line_z":"566.44"},{"line_id":"3","line_x":"223923.836002907","line_y":"2625017.04433629","line_z":"554.45"},{"line_id":"3","line_x":"223943.462475625","line_y":"2625049.71578919","line_z":"548.57"},{"line_id":"3","line_x":"223963.088948343","line_y":"2625082.3872421","line_z":"530.92"},{"line_id":"3","line_x":"223982.715421061","line_y":"2625115.058695","line_z":"523.23"}],[{"line_id":"4","line_x":"223933.649690323","line_y":"2624870.02294317","line_z":"590.65"},{"line_id":"4","line_x":"223953.276163041","line_y":"2624902.69439607","line_z":"584.31"},{"line_id":"4","line_x":"223972.902635759","line_y":"2624935.36584898","line_z":"568.02"},{"line_id":"4","line_x":"223992.529108477","line_y":"2624968.03730188","line_z":"565.31"},{"line_id":"4","line_x":"224012.155581195","line_y":"2625000.70875479","line_z":"558.98"},{"line_id":"4","line_x":"224031.782053913","line_y":"2625033.38020769","line_z":"540.42"}],[{"line_id":"5","line_x":"223952.221110843","line_y":"2624839.10842322","line_z":"603.2"},{"line_id":"5","line_x":"223971.847583561","line_y":"2624871.77987612","line_z":"590.65"},{"line_id":"5","line_x":"223991.474056279","line_y":"2624904.45132903","line_z":"582.39"},{"line_id":"5","line_x":"224011.100528997","line_y":"2624937.12278193","line_z":"571.19"},{"line_id":"5","line_x":"224030.727001715","line_y":"2624969.79423484","line_z":"566.55"},{"line_id":"5","line_x":"224050.353474433","line_y":"2625002.46568774","line_z":"557.05"}]],"linePointArray":[{"m":"0","x":"223835.517642503","y":"2625196.7375737","z":"513.5"},{"m":"100","x":"223884.58316274","y":"2625115.05872883","z":"523.91"},{"m":"200","x":"223933.649239266","y":"2625033.38006274","z":"548.57"},{"m":"300","x":"223982.715872118","y":"2624951.70157543","z":"562.82"},{"m":"337.849092943695","x":"224001.287292638","y":"2624920.78705548","z":"576.73"}]}

取得縱橫斷面示意圖 getGraph

輸入參數

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

使用範例

Web API URL
http://land.colife.org.tw/services/lineprofile/lineprofile.asmx/getGraph?apikey=&wkt=LINESTRING(120.74139213562013 23.732780075073244,120.74310874938966 23.72986183166504)&data=TW_DLA_20010814_20061226_20M_3826&stepSizeValue=100
回傳json字串
{"chartUrl":["http://land.colife.org.tw/services/lineprofile/LineProfileChart/169bf2e7-1c39-4166-8e9c-9c2b1e9a8f21/1.png","http://land.colife.org.tw/services/lineprofile/LineProfileChart/169bf2e7-1c39-4166-8e9c-9c2b1e9a8f21/2.png","http://land.colife.org.tw/services/lineprofile/LineProfileChart/169bf2e7-1c39-4166-8e9c-9c2b1e9a8f21/3.png","http://land.colife.org.tw/services/lineprofile/LineProfileChart/169bf2e7-1c39-4166-8e9c-9c2b1e9a8f21/4.png","http://land.colife.org.tw/services/lineprofile/LineProfileChart/169bf2e7-1c39-4166-8e9c-9c2b1e9a8f21/5.png"]}