/// <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 
            base.Param = inputParam;

            _dataSets = dataSets;

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

            Refresh();
        }
Esempio n. 2
0
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 /// <returns></returns>
 void ITool.Initialize()
 {
     _inputParam = new Parameter[7];
     _inputParam[0] = new PointFeatureSetParam(TextStrings.PointFeatureSet);
     _inputParam[1] = new ListParam(TextStrings.Zvalue);
     _inputParam[1].HelpText = TextStrings.layercontainsvalues;
     _inputParam[2] = new DoubleParam(TextStrings.CellSize, 0, 0, double.MaxValue);
     _inputParam[2].HelpText = TextStrings.Thecellsizeingeographicunits;
     _inputParam[3] = new DoubleParam(TextStrings.Power, 2, 1, double.MaxValue);
     _inputParam[3].HelpText = TextStrings.Theinfluenceofdistance;
     _neighborhoodType = new List<string>();
     _neighborhoodType.Add(TextStrings.FixedDistance);
     _neighborhoodType.Add(TextStrings.FixedCount);
     _inputParam[4] = new ListParam(TextStrings.NeighborhoodType, _neighborhoodType, 0);
     _inputParam[4].HelpText = TextStrings.Selectthetypeofneighborhood;
     _inputParam[5] = new IntParam(TextStrings.MinMaxnumberofpoints, 12, 0, int.MaxValue);
     _inputParam[5].HelpText = TextStrings.FixedDistanceHelpText;
     _inputParam[6] = new DoubleParam(TextStrings.MinMaxdistance, 0, 0, double.MaxValue);
     _inputParam[6].HelpText = TextStrings.FixedDistanceHelpText; ;
     
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam(TextStrings.Raster);
 }
        /// <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 
            base.Param = outputParam;

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

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

            //Populates the dialog with the default parameter value
            if (outputParam.Value != null && outputParam.DefaultSpecified == true)
            {
                textBox1.Text = outputParam.ModelName;
                base.Status = ToolStatus.Ok;
                base.LightTipText = MapWindow.MessageStrings.FeaturesetValid;
            }
        }
Esempio n. 4
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new RasterParam("input1 Raster");
            _inputParam[0].HelpText = "Input First Raster";
            _inputParam[1] = new RasterParam("input2 Raster");
            _inputParam[1].HelpText = "Input Second Raster for Merging";

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam("Output Raster");
            _outputParam[0].HelpText = "Select the Result Raster Directory and Name";

        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[1];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster);
            _inputParam[0].HelpText = TextStrings.inputrastetoconvert;

            _outputParam = new Parameter[1];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.Convertedfeatureset);
            _outputParam[0].HelpText = TextStrings.featuresetcreated;
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new RasterParam(TextStrings.input1Raster);
            _inputParam[0].HelpText = TextStrings.InputRasterforCliping;
            _inputParam[1] = new FeatureSetParam(TextStrings.input2PolygonforCliping);
            _inputParam[1].HelpText = TextStrings.InputPolygonforclipingtoRaster;

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster);
            _outputParam[0].HelpText = TextStrings.ResultRasterDirectory;

        }
Esempio n. 7
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.inputRaster);
            _inputParam[0].HelpText = TextStrings.InputtheRasterforCellsizeChange;
            _inputParam[1] = new DoubleParam(TextStrings.InputnewcellHight);
            _inputParam[1].HelpText = TextStrings.DisplayingistheOldCellHight;
            _inputParam[2] = new DoubleParam(TextStrings.InputnewcellWidth);
            _inputParam[2].HelpText = TextStrings.DisplayingistheOldCellHight;

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster);
            _outputParam[0].HelpText = TextStrings.newrastername;


        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new RasterParam("input1 Raster");
            _inputParam[0].HelpText = "Input Raster for Cliping";
            _inputParam[1] = new FeatureSetParam("input2 Polygon for Cliping");
            _inputParam[1].HelpText = "Input Polygon for cliping to Raster";

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam("Output Raster");
            _outputParam[0].HelpText = "Select the Result Raster Directory and Name";

        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[1];
            _inputParam[0] = new RasterParam("input1 polygon Raster");
            _inputParam[0].HelpText = "Input Raster to change to Polygon featureset";

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam("Output converted polygon.");
            _outputParam[0].HelpText = "Select the Result of Output feature set with average slope in the attribute.";
        }
Esempio n. 10
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[2];
            _inputParam[0] = new RasterParam(TextStrings.input1Raster);
            _inputParam[0].HelpText = TextStrings.InputFirstRaster;
            _inputParam[1] = new RasterParam(TextStrings.input2Raster);
            _inputParam[1].HelpText = TextStrings.InputSecondRasterforSubtract;

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster);
            _outputParam[0].HelpText = TextStrings.ResultRasterDirectory;

        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[4];
            _inputParam[0] = new FeatureSetParam("input1 polygon to Raster.");
            _inputParam[0].HelpText = "Input Polygon to change to Raster featureset";
            _inputParam[1] = new IntParam("Input No of Cell rows in the output raster.");
            _inputParam[1].HelpText = "Standard is 255 but you can input according to your requirement.";
            _inputParam[2] = new IntParam("Input No of Cell colums in the output raster.");
            _inputParam[2].HelpText = "Standard is 255 but you can input according to your requirement.";
            _selectionType = new List<string>();
            _selectionType.Add("Cover Center");
            _selectionType.Add("Cover Area");
            _inputParam[3] = new ListParam("SelectionType", _selectionType, 0);
            _inputParam[3].HelpText = "Select the type of selection when consider cell allocaton.\n\n Cover Center: " +
                                      "what ever the polygon cover the center of the cell will alocate to that polygon.\n\n Cover Area: " +
                                      "This will decide which polygon cover more area with that cell and allocate the more covering polygon"+
                                      " to that cell.";

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam("Output Raster.");
            _outputParam[0].HelpText = "Select the Result of Output feature set with average slope in the attribute.";
        }
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 /// <returns></returns>
 public void Initialize()
 {
     _inputParam = new Parameter[2];
     _inputParam[0] = new RasterParam("input Raster");
     _inputParam[0].HelpText = "Input to create the boolean mask from.";
     _inputParam[1] = new DoubleParam("Threshold value");
     _inputParam[1].HelpText = "The threshold value to use to create the raster mask.";
                
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam("Raster Mask");
     _outputParam[0].HelpText = "The mask raster created.";
 }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[7];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster);
            _inputParam[0].HelpText = TextStrings.InputRasterforaverageslopecalculation;
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0);
            _inputParam[1].HelpText = TextStrings.InputZfactorforslopedisplay;
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false);
            _inputParam[2].HelpText = TextStrings.slopeinpercentage;
            _inputParam[3] = new FeatureSetParam(TextStrings.input1polygonfeatureset);
            _inputParam[3].HelpText = TextStrings.averageslopeinarribute;
            _inputParam[4] = new FeatureSetParam(TextStrings.inputtheareaofinterest);
            _inputParam[4].HelpText = TextStrings.featuresetcontainareainterest;
            _inputParam[5] = new IntParam(TextStrings.Indexofareaofinterestfeature, 0);
            _inputParam[5].HelpText = TextStrings.indexspecificarea;
            _inputParam[6] = new StringParam(TextStrings.Fieldnameforavrageslope, TextStrings.AveSlope);
            _inputParam[6].HelpText = TextStrings.Fieldnamecolomavrageslope;

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope);
            _outputParam[0].HelpText = TextStrings.SelecttheResultofOutput;
        }
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 /// <returns></returns>
 public void Initialize()
 {
     _inputParam = new Parameter[4];
     _inputParam[0] = new FeatureSetParam(TextStrings.input1polygontoRaster);
     _inputParam[0].HelpText = TextStrings.InputPolygontochange;
     _inputParam[2] = new DoubleParam(TextStrings.DesiredCellSize);
     _inputParam[2].HelpText = TextStrings.Themaximumnumber;
     _inputParam[1] = new ListParam(TextStrings.stringnameoffield);
     _inputParam[1].HelpText = TextStrings.Thevalueofeachcell;
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam(TextStrings.OutputRaster);
     _outputParam[0].HelpText = TextStrings.Resultofaverageslope;
 }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster);
            _inputParam[0].HelpText = TextStrings.InputRasterforaverageslopecalculation;
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0);
            _inputParam[1].HelpText = TextStrings.InputZfactorforslopedisplay;
            _inputParam[2] = new PolygonFeatureSetParam(TextStrings.input1polygonfeatureset);
            //_inputParam[2] = new FeatureSetParam(TextStrings."input1 polygon feature set");
            _inputParam[2].HelpText = TextStrings.FindAveregeSlopeDescription;

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputfeaturesetwithaverageslope);
            _outputParam[0].HelpText = TextStrings.Resultofaverageslope;
        }
Esempio n. 16
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster);
            _inputParam[0].HelpText = TextStrings.InputRasterforaverageslopecalculation;
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0);
            _inputParam[1].HelpText = TextStrings.InputZfactorforslopedisplay;
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false);
            _inputParam[2].HelpText = TextStrings.slopeinpercentageindegree;

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

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

        }