加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

利用ArcGIS API For Flex+ImageServer实现Identity影像服务的值

发布时间:2020-12-15 05:02:34 所属栏目:百科 来源:网络整理
导读:ImageServer能够直接获得影像服务的栅格值,ImageServer支持??导出图像?,查询,识别?,?下载?操作,查看 ArcGIS Server REST API的帮助得到进行Identity操作需要遵循mosicRule,mosicRule所需的参数如下: { "mosaicMethod" : "esriMosaicNone | esriMosaic

ImageServer能够直接获得影像服务的栅格值,ImageServer支持??导出图像?,查询,识别?,?下载?操作,查看ArcGIS Server REST API的帮助得到进行Identity操作需要遵循mosicRule,mosicRule所需的参数如下:

{
  "mosaicMethod" : "<esriMosaicNone | esriMosaicCenter | esriMosaicNadir | esriMosaicViewpoint | 
                     esriMosaicAttribute | esriMosaicLockRaster | esriMosaicNorthwest | esriMosaicSeamline>","where" : "<where>","sortField" : "<sortFieldName>","sortValue" : <sortValue>,"ascending" : <true | false>,"lockRasterIds" : [<rasterId1>,<rasterId2>],"viewpoint" : <point>,"fids" : [<fid1>,<fid2>],"mosaicOperation" : "<MT_FIRST | MT_LAST | MT_MIN | MT_MAX | MT_MEAN | MT_BLEND>"
}
在Flex中利用ArcGIS API,使用方法如下:

var imageIdentify:ImageServiceIdentifyTask=new ImageServiceIdentifyTask(imageLayer.url);
var parm:ImageServiceIdentifyParameters=new ImageServiceIdentifyParameters();
var mosaicRule:MosaicRule=new MosaicRule();
mosaicRule.ascending=false;
mosaicRule.method="esriMosaicCenter";
parm.geometry=mapPoint;
parm.mosaicRule=mosaicRule;
parm.pixelSizeX=imageLayer.pixelSizeX;
parm.pixelSizeY=imageLayer.pixelSizeY;
imageIdentify.execute(parm,new AsyncResponder(onResult,onFault));
//成功执行的操作
private function onResult(imageResult : ImageServiceIdentifyResult,token : Object = null):void
{
	var value:String=imageResult.value.toString();
}
//出现错误的操作
private function onFault(info : Object,token : Object = null):void
{
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读