在连接SDE中的遥感影响时主要有一下几个步骤值得注意:
第一步:使用ArcIMS Author连接ArcSDE,添加栅格图像文件,制作成Axl文件,但此时栅格图像不能正常显示通常显示为一整块的红色,但忽略 不管他,对以后没任何影响,这个主要是由于author不能浏览遥感影像造成的。
第二步:将自己制作的AxL文件打开,如下形式:
< ARCXML version = " 1.1 " >
< CONFIG >
< ENVIRONMENT >
< LOCALE country = " CN " language = " zh " variant = "" />
< UIFONT color = " 0,0,0 " name = " SansSerif " size = " 12 " style = " regular " />
< SCREEN dpi = " 96 " />
</ ENVIRONMENT >
< MAP >
< PROPERTIES >
< ENVELOPE minx = " 297731.093571868 " miny = " 2192157.46183438 " maxx = " 1242422.49513368 " maxy = " 2909045.94428797 " name = " Initial_Extent " />
< MAPUNITS units = " decimal_degrees " />
</ PROPERTIES >
< WORKSPACES >
< SDEWORKSPACE name = " sde_ws-22 " server = " xiahuan " instance = " port:5152 " database = " dzhjserver " user = " sde " encrypted = " true " password = " EPYCJM " geoindexdir = " C:DOCUME~1qjhliLOCALS~1Temp" />
</ WORKSPACES >
< LAYER type = " featureclass " name = " 控制点 " visible = " false " id = " 0 " >
< DATASET name = " SDE.LCTFJ010T1 " type = " point " workspace = " sde_ws-22 " />
< SIMPLERENDERER >
< SIMPLEMARKERSYMBOL color = " 27,27,127 " width = " 6 " />
</ SIMPLERENDERER >
</ LAYER >
< LAYER type = " featureclass " name = " 各市 " visible = " true " id = " 1 " >
< DATASET name = " SDE.LCDSQ043X3 " type = " polygon " workspace = " sde_ws-22 " />
< GROUPRENDERER >
< SIMPLERENDERER >
< SIMPLEPOLYGONSYMBOL boundarytransparency = " 1.0 " filltransparency = " 1.0 " fillcolor = " 255,255,255 " boundarywidth = " 2 " boundarycaptype = " round " boundarycolor = " 102,204,255 " />
</ SIMPLERENDERER >
< SIMPLELABELRENDERER field = " NAME " >
< TEXTSYMBOL font = " 宋体 " fontstyle = " regular " fontsize = " 12 " />
</ SIMPLELABELRENDERER >
</ GROUPRENDERER >
</ LAYER >
< LAYER type = " featureclass " name = " 信息 " visible = " true " id = " 10 " >
< DATASET name = " SDE.YZZHY050S3 " type = " polygon " workspace = " sde_ws-22 " />
< GROUPRENDERER >
< VALUEMAPRENDERER lookupfield = " ALARMGRADE " >
< EXACT value = " 1.0 " label = " 一级 " >
< SIMPLEPOLYGONSYMBOL boundarytransparency = " 1.0 " filltransparency = " 1.0 " fillcolor = " 192,220,192 " boundarycaptype = " round " boundarycolor = " 192,220,192 " />
</ EXACT >
< EXACT value = " 2.0 " label = " 二级 " >
< SIMPLEPOLYGONSYMBOL boundarytransparency = " 1.0 " filltransparency = " 1.0 " fillcolor = " 0,255,0 " boundarycaptype = " round " boundarycolor = " 0,255,0 " />
</ EXACT >
</ VALUEMAPRENDERER >
< SIMPLELABELRENDERER field = " ALARMGRADE " >
< TEXTSYMBOL font = " 宋体 " fontstyle = " regular " fontsize = " 12 " />
</ SIMPLELABELRENDERER >
</ GROUPRENDERER >
</ LAYER >
< LAYER type = " featureclass " name = " 各县 " visible = " true " id = " 2 " maxscale = " 1:250958668922 " >
< DATASET name = " SDE.LCXJJ044J2 " type = " line " workspace = " sde_ws-22 " />
< SIMPLERENDERER >
< SIMPLELINESYMBOL width = " 1 " captype = " round " color = " 102,204,255 " />
</ SIMPLERENDERER >
</ LAYER >
< LAYER type = " featureclass " name = " 河流 " visible = " true " id = " 3 " >
< DATASET name = " SDE.SCHLF014B3 " type = " polygon " workspace = " sde_ws-22 " />
< SIMPLERENDERER >
< SIMPLELINESYMBOL width = " 1 " captype = " round " color = " 102,102,255 " />
</ SIMPLERENDERER >
</ LAYER >
< LAYER type = " featureclass " name = " 高速公路 " visible = " true " id = " 8 " maxscale = " 1:401017450515 " >
< DATASET name = " SDE.LCGLF029G2 " type = " line " workspace = " sde_ws-22 " />
< SIMPLERENDERER >
< SIMPLELINESYMBOL width = " 2 " captype = " round " />
</ SIMPLERENDERER >
</ LAYER >
</ MAP >
</ CONFIG >
</ ARCXML >
在以上代码中找到如下代码段:
<LAYER type="featureclass" name="各市" visible="true" id="1">
<DATASET name="SDE.LCDSQ043X3" type="polygon" workspace="sde_ws-22" />
<GROUPRENDERER>
<SIMPLERENDERER>
<SIMPLEPOLYGONSYMBOL boundarytransparency="1.0" filltransparency="1.0" fillcolor="255,255,255" boundarywidth="2" boundarycaptype="round" boundarycolor="102,204,255" />
</SIMPLERENDERER>
<SIMPLELABELRENDERER field="NAME">
<TEXTSYMBOL font="宋体" fontstyle="regular" fontsize="12" />
</SIMPLELABELRENDERER>
</GROUPRENDERER>
</LAYER>
主要修改以上有颜色的地方,修改为如下形式:
type="featureclass" 改为:type="image"
DATASET name="SDE.LCDSQ043X3" 改为:DATASET name="SDE.LCDSQ043X3.RASTER"
type="polygon" 改为:type="image"
此时可以在IE中浏览遥感影像数据,遥感影像加载成功,但是不能在Athor中浏览,这也是ESRI的一大遗憾吧!