取得單點坡向值 getAspectValue

輸入參數

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

回傳資料結構

參數名稱 參數說明
slope_direction 坡向
desc 說明文字
slope_angle 坡向數值

坡向分級數值表

slope_direction desc slope_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
http://land.colife.org.tw/services/aspect/aspect.asmx/getAspectValue?apikey=&wkt=POINT(120.91760253906251 24.1987548828125)&data=TW_DLA_20010814_20061226_20M_3826
回傳json字串
{"aspect_direction":"W","desc":"西","aspect_angle":255.2012}

取得坡向分級分析結果 getAspectClassify

輸入參數

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

回傳資料結構

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

Classify資料結構

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

使用範例

Web API URL
http://land.colife.org.tw/services/aspect/aspect.asmx/getAspectClassify?apikey=&wkt=POLYGON((120.58251953125001 23.9131103515625,120.58251953125001 23.88564453125,120.60449218750001 23.88564453125,120.60449218750001 23.9131103515625,120.58251953125001 23.9131103515625))&data=TW_DLA_20010814_20061226_20M_3826
回傳json字串
{"area_length":7482740.898437,"Unit":"平方公尺","cellArea":6686000,"classify":[{"cellRatio":0.0202,"cellArea":135200,"classid":"Flat","desc":"平地"},{"cellRatio":0.194,"cellArea":1297200,"classid":"N","desc":"北"},{"cellRatio":0.1103,"cellArea":737200,"classid":"NE","desc":"東北"},{"cellRatio":0.0867,"cellArea":579600,"classid":"NE","desc":"東北"},{"cellRatio":0.0538,"cellArea":359600,"classid":"SE","desc":"東南"},{"cellRatio":0.0623,"cellArea":416400,"classid":"S","desc":"南"},{"cellRatio":0.0929,"cellArea":620800,"classid":"SW","desc":"西南"},{"cellRatio":0.1736,"cellArea":1160400,"classid":"W","desc":"西"},{"cellRatio":0.2063,"cellArea":1379600,"classid":"NW","desc":"西北"}]}

取得坡向分級圖檔 getImage

輸入參數

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

回傳資料結構

直接回傳使用者圈選區域的坡度分級圖檔URL

使用範例

Web API URL
http://land.colife.org.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字串
http://land.colife.org.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
http://land.colife.org.tw/services/aspect/aspect.asmx/getImageFile?apikey=&wkt=POLYGON((120.59350585937501 24.06142578125,120.59350585937501 23.9955078125,120.64294433593751 23.9955078125,120.64294433593751 24.06142578125,120.59350585937501 24.06142578125))&data=TW_DLA_20010814_20061226_20M_3826
回傳json字串
{"imageURL":"http://land.colife.org.tw/services/aspect/WMSImages/1325897d-d4c5-4fc8-bdc7-f5d87a22c14e.png","worldFileURL":"http://land.colife.org.tw/services/aspect/ImageFile/1325897d-d4c5-4fc8-bdc7-f5d87a22c14e.pgw","kmz":[{"url":"http://land.colife.org.tw/services/aspect/ImageFile/2c0627f6-06b7-4a1a-a006-305799223cdd.kmz"}],"bbox":"120.59350585937501,23.9955078125,120.64294433593751,24.06142578125","legendGraphURL":"http://land.colife.org.tw/services/aspect/ImageFile/LegendGraph/LegendGraph.png","legendDescription":"圖例說明"}