阅读:4953回复:6
AE中如何将tin导入到arcscene中进行三维显示
请问,AE中如何将tin导入到arcscene中进行三维显示
|
|
1楼#
发布于:2006-05-18 19:59
<P>先打开,然后加载到文档上,看看以前的帖子</P>
<P><a href="http://www.gisempire.com/bbs/dispbbs.asp?BoardID=62;ID=45680" target="_blank" >http://www.gisempire.com/bbs/dispbbs.asp?BoardID=62;ID=45680</A></P> |
|
|
2楼#
发布于:2006-05-23 13:17
我可以用TINLAYER打开并显示,但是不知道如何设置成基于表面高度文件
|
|
3楼#
发布于:2006-05-25 20:05
<P>我是用 韩鹏 的书中讲的方法实现的</P>
|
|
4楼#
发布于:2006-06-09 08:55
一段代码C#的,希望对你有提示作用
<P> openFileDialog1.Title = "打开Tin类型文件"; <BR> <BR> openFileDialog1.DefaultExt = ".adf";<BR> openFileDialog1.Filter = "Img Files (*.adf)|*.adf";<BR> <BR> if(openFileDialog1.ShowDialog() != DialogResult.OK) // 点击“ok”以后<BR> return;</P>
<P> // 得到工作空间和Tin文件夹<BR> string dir,name;<BR> str_filename = openFileDialog1.FileName;</P> <P> int which = str_filename.LastIndexOf('\\');<BR> dir = str_filename.Substring(0,which);<BR> which = dir.LastIndexOf('\\');<BR> name = dir.Substring(which + 1);<BR> dir = dir.Substring(0,which);</P> <P> // 确认工作空间和Tin文件夹<BR> TinWorkSpaceForm theForm = new TinWorkSpaceForm();<BR> <BR> theForm.m_tBoxWorkspace.Text = dir;<BR> theForm.m_tBoxTinPos.Text = name;<BR> <BR> if(theForm.ShowDialog() != DialogResult.OK) // 选中确定<BR> return;</P> <P> // 获取确认后的工作空间和Tin目录<BR> dir = theForm.m_tBoxWorkspace.Text;<BR> name = theForm.m_tBoxTinPos.Text;<BR> </P> <P> //dir = @"C:\arcgis\ArcTutor\3DAnalyst\Exercise5\surface data";<BR> //name = @"dtm_tin";</P> <P> // 获取Tin的数据集<BR> ITin Tin;<BR> Tin = GetTinSurface(@dir,@name);</P> <P><BR> if(Tin == null) //无法读入Tin数据<BR> {<BR> MessageBox.Show("无法读入Tin数据,请确认路径或数据是否为Tin格式");<BR> return;<BR> }</P> <P> <BR> // 将Tin的数据集赋予新的层<BR> ITinLayer TinLayer; <BR> TinLayer = new TinLayerClass();<BR> TinLayer.Dataset = Tin;</P> <P> // 图层名称<BR> TinLayer.Name = name;</P> <P><BR> //object t = 1;<BR> //Tin.SaveAs("c:\\goodtin",ref t);<BR> <BR> // 加入Tin层<BR> axSceneControl1.Scene.AddLayer(TinLayer,true); <BR> // 刷新<BR> axSceneControl1.SceneViewer.Redraw(false);</P> |
|
5楼#
发布于:2006-06-15 15:12
<P>感谢楼上的回答,你这里只是添加一个TIN图层,并不是把与遥感图片叠加显示</P>
|
|
6楼#
发布于:2007-06-28 22:21
在arcscene中打开遥感图象,然后点击其属性,在属性里面选择Base Heights,然后再选择obtain heights for layer from surface,倒入你的TIN图象就可以实行TIN与遥感图象的叠加显示~~
|
|