阅读:2587回复:5
为什么加载栅格图层时出现“自动化错误”的问题?
<P ><FONT face="Times New Roman">。。。。。前面代码没问题</FONT></P>
<P ><FONT face="Times New Roman">Set pRasterDataset = pRasterWS.OpenRasterDataset("name")//这里是一个img格式影像文件,出现错误</FONT></P> <P ><FONT face="Times New Roman">pRLayer.CreateFromDataset pRDataset </FONT></P> <P >pMap.AddLayer pRLayer</P> <P >另外我在arcmap环境下加栅格图层是总是有“Invalid raster dataset 。failed to create raster layer”,AO中的错误会不会跟这个有关呢?</P> |
|
1楼#
发布于:2005-07-19 15:46
<P>还是路径中不要有中文,一有中文就会出现错误!</P>如果路径正确的话,这些栅格图形都是可以加载的!
[此贴子已经被作者于2005-7-19 15:49:02编辑过]
|
|
2楼#
发布于:2005-07-19 11:44
<P>在AE中支持的影象格式好象不是很多,普通的删格文件比如.bmp的,jpg的,都不能正常加载到mapcontrol中!这是什么问题?</P>
|
|
3楼#
发布于:2005-07-02 21:10
<P>果然如此,路经全部改为英文就可以加了</P>
|
|
4楼#
发布于:2005-06-29 13:38
Bug: Cannot see rasters in ArcGIS 9.1<br>
<TABLE> <TR> <TH vAlign=top>Article ID:</TH> <TD vAlign=top>29414</TD></TR> <TR> <TH vAlign=top>Bug Id:</TH> <TD vAlign=top>CQ00272923</TD> <TR> <TH vAlign=top>Software:</TH> <TD vAlign=top><B>ArcGIS - ArcEditor</B> 9.1 <B>ArcGIS - ArcInfo</B> 9.1 <B>ArcGIS - ArcView</B> 9.1</TD></TR> <TR> <TH vAlign=top>Platforms:</TH> <TD vAlign=top>N/A</TD></TR></TABLE> <H4>Description</H4> <DIV>No raster files are listed when attempting to view them in ArcCatalog, add them to ArcMap using the Add Data dialog box, or by navigating to Tools > Options > Raster > File Formats.</DIV><br> <H4>Cause</H4> <DIV>Third-party, non-ESRI applications have incorrectly installed raster support files into the c:\windows\system32 directory.</DIV><br> <H4>Workaround</H4> <DIV>This solution will solve the problem of rasters not being visible. If an installed program references these files, it may not function properly after they are renamed. <br><br> <DIV red? COLOR: 500px;><IMG src="http://support.esri.com/common/style/graphics/icons/warn.gif"> Do NOT delete the files unless you are certain they are no longer in use.</DIV><br><br> <DIV red? COLOR: 500px;><IMG src="http://support.esri.com/common/style/graphics/icons/warn.gif"> WARNING: The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary. <br><br>ESRI cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk. </DIV><br><br><br> <OL> <LI>Start Windows Explorer and navigate to C:\winnt\system32 or C:\windows\system32 directory and look for the following files: <br><br>Ethrlib.dll <br>Efileio.dll <br>ergxlib.dll <br>elib.dll <br><br> <LI>If any of these files are present, rename them or move them to another location. For example, rename the file 'ethrlib.dll' to 'ethrlib.old'. <br><br> <DIV red? COLOR: 500px;><IMG src="http://support.esri.com/common/style/graphics/icons/warn.gif"> Do not delete these files. They may be used by another application. If so please contact the software vendor for information and assistance.</DIV><br> <LI>Download the ZIP file in the Related Information section below and save it to disk. <br> <LI>Extract the file RasterReg.exe. <br> <LI>Navigate to the extracted file, and double-click. This will register 3 COM Raster DLLs: <br><br>SXSUtility.dll <br>XFComUtility.dll <br>RDO.dll <br> <LI>Verify that raster files are now visible in ArcGIS. </LI></OL></DIV><br> <H4>Related Information</H4> <DIV> <UL> <LI><a href="http://downloads.esri.com/support/TechArticles/rasterReg.zip" target="_blank" ><FONT color=#0a8161>RasterReg.zip</FONT></A> <br> <LI><a href="http://www.geotg.com/index.html" target="_blank" ><FONT color=#0a8161>Geographic Technologies Group</FONT></A></LI></UL></DIV><br> <P><I>Created:</I> 6/8/2005<br><I>Last Modified:</I> 6/24/2005</P> [此贴子已经被作者于2005-6-29 13:39:03编辑过]
|
|
|
5楼#
发布于:2005-06-27 19:43
注意目录和文件名不要是中文的
|
|
|