OSGB缓存加载进来的图层应该是Layer3DOSGBFile类型,改成Layer3DOSGBFile layer3DOSGBFile= layer3ds.Add(fileName, Layer3DType.OSGB, true) as Layer3DOSGBFile
后面写有:但是还是没出来
你做断点试试程序能过layer3D = layer3ds.Add(fileName, Layer3DType.OSGB, true);这一句吗,并且看一看layer3D是否为空