ArcGIS Server中的 Image Service 能够提供对影像原始数据的动态访问,得到其元数据(metadata):
包括自定义的空间参考,图幅范围,像元大小,像元类型,波段数,以及各波段的基础统计信息(最小值,最大值,平均值之
类);能够根据相关参数生成新的影像,同时在arcgis server 10版本中还添加了针对栅格数据的查询和下载功能。最重要的是不同
于map service(不论是cache或non-cache),能够对影像做一些处理,比如计算NDVI,坡度,坡向,进行Standard Deviation拉
伸、直方图均匀化拉伸,minmax拉伸等基本处理。虽然和专门的影像处理软件完全不能比较,但是能在网络上进行遥感影像处理。
为了能利用ArcGIS Flex API浏览ImageServer服务并对栅格地图进行渲染,我参考了ArcGIS有关服务的帮助和例子http:/
讲解了ImageServer服务几种栅格渲染的方法,ArcGISImageServiceLayer是通过renderingRule来进行渲染的,
但renderingRule的类型为RasterFunction,看到RasterFunction中的functionName和arguments属性,这让我一头雾水。
"rasterFunction" : "Aspect"
The Aspect
raster function takes no arguments. Hence,specifying only the rasterFunction
property suffices in this case.
{ "rasterFunction" : "Aspect" }
"rasterFunction" : "Colormap"
The arguments for the Colormap
function are as shown below:
Example 1:
"rasterFunction" : "Hillshade"
Hillshade function are as shown below:
Example:
NDVI function are as shown below:
ShadedRelief function are as shown below:
Slope function are as shown below:
Statistics function are as shown below:
Stretch function are as shown below:
rasterArgs = {}; rasterArgs["Colormap"] = ColorsGradient([new Color(150,255,255),new Color(255,150),150,150)]); //ColorsGradient上一篇文章所写的函数 rasterArgs["Azimuth"] =215; rasterArgs["Altitude"] =75; rasterFunction.arguments=rasterArgs; rasterFunction.functionName = "ShadedRelief"; imageLayer.renderingRule = rasterFunction; //imageLayer为ArcGISImageServiceLayer这样就可以进行渲染了,但是值得我们注意的是,服务中栅格数据到底是离散型还是连续型的,上面提到的函数都针对不同的数据类型。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。