예제 #1
0
        public static IRasterDataSource FromXElement(XElement ele)
        {
            if (ele == null)
            {
                return(null);
            }
            string name = null;

            if (ele.Attribute("name") != null)
            {
                name = ele.Attribute("name").Value;
            }
            string            url   = ele.Attribute("url").Value;
            string            fname = MapFactory.GetFullFilename(url);
            IRasterDataSource ds    = new RasterDataSource(fname);

            return(ds);
        }