tif格式的地形数据加载到idesktop中,好像加载完成自动生成了影像金字塔,然后isever发布的数据服务,使用如下代码获取高程值,请问是金字塔中的什么层级的数据,最高精度还是低精度的?
string lon = "90", lat = "50";
string uri = string.Format("http://localhost:8090/iserver/services/data-dem/rest/data/datasources/dem/datasets/srtm90/gridValue.rjson?x={0}&y={1}", lon, lat);
HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create(uri);
webRequest.Method = "GET";
webRequest.ContentType = "application/x-www-form-urlencoded";
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
StreamReader srReader = new StreamReader(webResponse.GetResponseStream(), Encoding.ASCII);
string strResult = srReader.ReadToEnd();
srReader.Close();
webResponse.Close();
Result result = JsonConvert.DeserializeObject<Result>(strResult);
double height = result.value;