Ejemplo n.º 1
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="inputParam">The parameter this element represents</param>
        /// <param name="dataSets">An array of available data</param>
        public RasterElement(RasterParam inputParam, List<DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

            //We save the parameters passed in
            Param = inputParam;

            _dataSets = dataSets;

            //Saves the label
            GroupBox.Text = Param.Name;

            DoRefresh();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="inputParam">The parameter this element represents</param>
        /// <param name="dataSets">An array of available data</param>
        public RasterElement(RasterParam inputParam, List <DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

            //We save the parameters passed in
            Param = inputParam;

            _dataSets = dataSets;

            //Saves the label
            GroupBox.Text = Param.Name;

            DoRefresh();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="outputParam">The parameter this element represents</param>
        /// <param name="dataSets">An array of available data</param>
        public RasterElementOut(RasterParam outputParam, List<DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

            //We save the parameters passed in
            Param = outputParam;

            //Saves the label
            GroupBox.Text = Param.Name;

            //Sets up the initial status light indicator
            base.Status = ToolStatus.Empty;
            LightTipText = ModelingMessageStrings.FeaturesetMissing;

            //Populates the dialog with the default parameter value
            if (outputParam.Value != null && outputParam.DefaultSpecified)
            {
                textBox1.Text = outputParam.ModelName;
                base.Status = ToolStatus.Ok;
                LightTipText = ModelingMessageStrings.FeaturesetValid;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="outputParam">The parameter this element represents</param>
        /// <param name="dataSets">An array of available data</param>
        public RasterElementOut(RasterParam outputParam, List <DataSetArray> dataSets)
        {
            //Needed by the designer
            InitializeComponent();

            //We save the parameters passed in
            Param = outputParam;

            //Saves the label
            GroupBox.Text = Param.Name;

            //Sets up the initial status light indicator
            base.Status  = ToolStatus.Empty;
            LightTipText = ModelingMessageStrings.FeaturesetMissing;

            //Populates the dialog with the default parameter value
            if (outputParam.Value != null && outputParam.DefaultSpecified)
            {
                textBox1.Text = outputParam.ModelName;
                base.Status   = ToolStatus.Ok;
                LightTipText  = ModelingMessageStrings.FeaturesetValid;
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
                                 {
                                     HelpText = TextStrings.InputRasterforaverageslopecalculation
                                 };
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0)
                                 {
                                     HelpText = TextStrings.InputZfactorforslopedisplay
                                 };
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false)
                                 {
                                     HelpText = TextStrings.slopeinpercentageindegree
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster)
                                  {
                                      HelpText = TextStrings.Resultofaverageslope
                                  };
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[7];
            _inputParam[0] = new PointFeatureSetParam(TextStrings.PointFeatureSet);
            _inputParam[1] = new ListParam(TextStrings.Zvalue) { HelpText = TextStrings.layercontainsvalues };
            _inputParam[2] = new DoubleParam(TextStrings.CellSize, 0, 0, double.MaxValue)
                                 {
                                     HelpText = TextStrings.Thecellsizeingeographicunits
                                 };
            _inputParam[3] = new DoubleParam(TextStrings.Power, 2, 1, double.MaxValue)
                                 {
                                     HelpText = TextStrings.Theinfluenceofdistance
                                 };
            _neighborhoodType = new List<string> { TextStrings.FixedDistance, TextStrings.FixedCount };
            _inputParam[4] = new ListParam(TextStrings.NeighborhoodType, _neighborhoodType, 0)
                                 {
                                     HelpText = TextStrings.Selectthetypeofneighborhood
                                 };
            _inputParam[5] = new IntParam(TextStrings.MinMaxnumberofpoints, 12, 0, int.MaxValue)
                                 {
                                     HelpText = TextStrings.FixedDistanceHelpText
                                 };
            _inputParam[6] = new DoubleParam(TextStrings.MinMaxdistance, 0, 0, double.MaxValue)
                                 {
                                     HelpText = TextStrings.FixedDistanceHelpText
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.Raster);
        }
Ejemplo n.º 7
0
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 public override void Initialize()
 {
     _inputParam = new Parameter[4];
     _inputParam[0] = new FeatureSetParam(TextStrings.input1polygontoRaster)
                          {
                              HelpText = TextStrings.InputPolygontochange
                          };
     _inputParam[2] = new DoubleParam(TextStrings.DesiredCellSize) { HelpText = TextStrings.Themaximumnumber };
     _inputParam[1] = new ListParam(TextStrings.stringnameoffield) { HelpText = TextStrings.Thevalueofeachcell };
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.Resultofaverageslope };
 }
Ejemplo n.º 8
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
                                 {
                                     HelpText = TextStrings.InputRasterforaverageslopecalculation
                                 };
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0)
                                 {
                                     HelpText = TextStrings.InputZfactorforslopedisplay
                                 };
            _inputParam[2] = new PolygonFeatureSetParam(TextStrings.input1polygonfeatureset)
                                 {
                                     HelpText = TextStrings.FindAverageSlopeDescription
                                 };

            // _inputParam[2] = new FeatureSetParam(TextStrings."input1 polygon feature set");
            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputfeaturesetwithaverageslope)
                                  {
                                      HelpText = TextStrings.Resultofaverageslope
                                  };
        }
Ejemplo n.º 9
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new RasterParam(TextStrings.input1Raster) { HelpText = TextStrings.InputFirstRaster };
            _inputParam[1] = new RasterParam(TextStrings.input2Raster)
                                 {
                                     HelpText = TextStrings.InputSecondRasterforMultiply
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.ResultRasterDirectory };
        }
Ejemplo n.º 10
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[1];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster) { HelpText = TextStrings.inputrastetoconvert };

            _outputParam = new Parameter[1];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.Convertedfeatureset)
                                  {
                                      HelpText = TextStrings.featuresetcreated
                                  };
        }
Ejemplo n.º 11
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster)
                                 {
                                     HelpText = TextStrings.InputtheRasterforCellsizeChange
                                 };
            _inputParam[1] = new DoubleParam(TextStrings.InputnewcellHight)
                                 {
                                     HelpText = TextStrings.DisplayingistheOldCellHight
                                 };
            _inputParam[2] = new DoubleParam(TextStrings.InputnewcellWidth)
                                 {
                                     HelpText = TextStrings.DisplayingistheOldCellHight
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.newrastername };
        }
Ejemplo n.º 12
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[4];
            _inputParam[0] = new FileParam(TextStrings.lasFilename, "LAS Files(*.las)|*.las")
                                 {
                                     HelpText = TextStrings.LasFullpath
                                 };
            ExtentParam p = new ExtentParam(TextStrings.RasterExtent);
            p.HelpText = TextStrings.GeographicExtent;
            p.DefaultToMapExtent = true;

            _inputParam[1] = p;

            _inputParam[2] = new IntParam(TextStrings.NumRows) { HelpText = TextStrings.numberofrows };

            _inputParam[3] = new IntParam(TextStrings.NumColumns) { HelpText = TextStrings.numberofcolums };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.ResultRasterDirectory };
        }
Ejemplo n.º 13
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster) { HelpText = TextStrings.InputRasternoValue };
            _inputParam[1] = new StringParam(TextStrings.Optional) { HelpText = TextStrings.Optionaltochange };
            _inputParam[2] = new StringParam(TextStrings.UserNewValues) { HelpText = TextStrings.UserinputNewValue };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.newrastername };
        }
Ejemplo n.º 14
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new RasterParam(TextStrings.input1Raster) { HelpText = TextStrings.InputRasterforCliping };
            _inputParam[1] = new PolygonFeatureSetParam(TextStrings.input2PolygonforCliping)
                                 {
                                     HelpText = TextStrings.InputPolygonforclipingtoRaster
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.ResultRasterDirectory };
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[7];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
                                 {
                                     HelpText = TextStrings.InputRasterforaverageslopecalculation
                                 };
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0)
                                 {
                                     HelpText = TextStrings.InputZfactorforslopedisplay
                                 };
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false)
                                 {
                                     HelpText = TextStrings.slopeinpercentage
                                 };
            _inputParam[3] = new FeatureSetParam(TextStrings.input1polygonfeatureset)
                                 {
                                     HelpText = TextStrings.averageslopeinarribute
                                 };
            _inputParam[4] = new FeatureSetParam(TextStrings.inputtheareaofinterest)
                                 {
                                     HelpText = TextStrings.featuresetcontainareainterest
                                 };
            _inputParam[5] = new IntParam(TextStrings.Indexofareaofinterestfeature, 0)
                                 {
                                     HelpText = TextStrings.indexspecificarea
                                 };
            _inputParam[6] = new StringParam(TextStrings.Fieldnameforavrageslope, TextStrings.AveSlope)
                                 {
                                     HelpText = TextStrings.Fieldnamecolomavrageslope
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope)
                                  {
                                      HelpText = TextStrings.SelecttheResultofOutput
                                  };
        }
Ejemplo n.º 16
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster)
                                 {
                                     HelpText = TextStrings.InputRasterforaverageslopecalculation
                                 };
            _inputParam[1] = new DoubleParam("Base value", 0)
                                 {
                                     HelpText =
                                         "The starting point for bin calculations.  A base value of 10 with a bin size of 20 would give all values from 10 to 30 a value of 20."
                                 };
            _inputParam[2] = new DoubleParam("Bin size", 10)
                                 {
                                     HelpText =
                                         "The size of the bins.  A base value of 10 with a bin size of 20 would give all the values from 10 to 30 a value of 20."
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster)
                                  {
                                      HelpText = TextStrings.Resultofaverageslope
                                  };
        }
Ejemplo n.º 17
0
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 public override void Initialize()
 {
     _inputParam = new Parameter[2];
     _inputParam[0] = new RasterParam(TextStrings.inputRaster)
                          {
                              HelpText = TextStrings.InputRastercontainingtargetcells
                          };
     _inputParam[1] = new DoubleParam(TextStrings.Maximumdistance, 100.0)
                          {
                              HelpText = TextStrings.Maximumdistancetobecalculated
                          };
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
                           {
                               HelpText = TextStrings.SelectresultrasterfileName
                           };
 }