コード例 #1
0
        public Surface(string name, FileInfo rasterPath, FileInfo hillshadePath)
            : base(name, rasterPath)
        {
            ErrorSurfaces     = new naru.ui.SortableBindingList <ErrorSurface>();
            LinearExtractions = new List <LinearExtraction.LinearExtraction>();

            if (hillshadePath is FileInfo && hillshadePath.Exists)
            {
                Hillshade = new HillShade(string.Format("{0} Hillshade", Noun), hillshadePath);
            }
        }
コード例 #2
0
        public Surface(string name, GCDConsoleLib.Raster raster, GCDConsoleLib.Raster rHillShade)
            : base(name, raster)
        {
            if (rHillShade != null)
            {
                Hillshade = new HillShade(string.Format("{0} Hillshade", Noun), rHillShade);
            }

            ErrorSurfaces     = new naru.ui.SortableBindingList <ErrorSurface>();
            LinearExtractions = new List <LinearExtraction.LinearExtraction>();
        }
コード例 #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="nodSurface"></param>
        /// <param name="bLoadErrorSurfaces">See remarks</param>
        /// <remarks>
        /// DEM Survey error surfaces can be defined by assoc surface or FIS that uses
        /// assoc surface. But When this base constructor for Surfaces get's called the associated
        /// surface dictionary has not been loaded yet. DEM Surveys therefore override the following call
        /// </remarks>
        public Surface(XmlNode nodSurface, bool bLoadErrorSurfaces, bool bLoadLinearExtractions)
            : base(nodSurface)
        {
            XmlNode nodHillshade = nodSurface.SelectSingleNode("Hillshade");

            if (nodHillshade is XmlNode)
            {
                Hillshade = new HillShade(string.Format("{0} Hillshade", Noun), ProjectManager.Project.GetAbsolutePath(nodHillshade.InnerText));
            }

            ErrorSurfaces = new naru.ui.SortableBindingList <ErrorSurface>();
            if (bLoadErrorSurfaces)
            {
                LoadErrorSurfaces(nodSurface);
            }

            LinearExtractions = new List <LinearExtraction.LinearExtraction>();
            if (bLoadLinearExtractions)
            {
                LoadLinearExtractions(nodSurface);
            }
        }