如何在只安装arcengine的情况下加载GRID格式栅格数据(需要界面)

由于arcengine自带的加载数据command不支持加载GRID格式栅格数据,调用IGxDialog又需要安装Desktop,请问还有其他方式吗
已邀请:

朱新颖

赞同来自:

AO帮助中关于ControlsAddDataCommandClass的说明中确实没有ESRI GRID格式,里面有如下解释: 
 
Raster data (Imagine Image (.img), Bitmap (.bmp), JPEG (.jpg, .jpeg), Portable Network Graphics (.png), Graphics Interchange Format (.gif), Tagged Image File Format (.tif, .tiff), Arc/Info & Space Imaging BIL (.bil), Arc/Info & Space Imaging BIP (.bip), Arc/Info & Space Imaging BSQ (.bsq), DTED Level 0-2 (.dted), ERDAS 7.5 LAN (.lan), ERDAS 7.5 GIS (.gis), JP2 (.jp2), MrSID (.sid), RAW (.raw), NTIF (.ntf), USGS Ascii DEM (.dem), X11 Pixmap (.xpm), PC Raster (.map), PCI Geomatics Database File (.pix), JPC (.jpc), J2C (.j2c), J2K (.j2k), HDF (.hdf), BSB (.kap), ER Mapper ECW (.ecw)). 
 
Data types not listed above may be loaded into the ArcGIS Engine Controls programmatically, by loading layer files (*.lyr), or by loading pre-authored map documents (*.mxd) using the ControlsOpenDocCommand or the ControlsGlobeOpenDocCommand. 
 
可以尝试将其转为其它数据格式或者使用.lyr文件形式加载。
我觉得可以使用文件夹浏览,获取路径和文件名,然后用传统的IRasterWorkspace.OpenRasterDataset以及IRasterLayer来加载。

要回复问题请先登录注册