示例#1
0
文件: MapManager.cs 项目: uwitec/gvms
        /// <summary>
        /// �����ļ����õ�դ��ͼ��
        /// </summary>
        /// <param name="layerPath">ͼ���ļ�·��</param>
        /// <returns></returns>
        public ImageLayer GetSingleImageLayer(string layerPath)
        {
            if (!System.IO.File.Exists(layerPath))
                return null;

            ImageLayer oLayer = new ImageLayerClass();
            oLayer.File = layerPath;

            return oLayer;
        }
示例#2
0
        /// <summary>
        /// 根据文件名得到栅格图层
        /// </summary>
        /// <param name="layerPath">图层文件路径</param>
        /// <returns></returns>
        public ImageLayer GetSingleImageLayer(string layerPath)
        {
            if (!System.IO.File.Exists(layerPath))
            {
                return(null);
            }

            ImageLayer oLayer = new ImageLayerClass();

            oLayer.File = layerPath;

            return(oLayer);
        }