예제 #1
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="param">The parameter this element represents</param>
        public ListElement(ListParam param)
        {
            //Needed by the designer
            InitializeComponent();
            this.GroupBox.Text = param.Name;
            
            //We save the parameters passed in 
            Param = param;

            Refresh();

            //Update the state of the status light
            comboBox1_SelectedValueChanged(null, null);
        }
예제 #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>
        /// 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.";
        }
예제 #4
0
 /// <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;
 }
예제 #5
0
        public void Initialize()
        {
            _inputParameters = new Parameter[3];
            _inputParameters[0] = new OpenFileParam("Select the SQLITE database");
            _inputParameters[1] = new ListParam("Select the Site");
            _inputParameters[2] = new ListParam("Select the Variable");

            _outputParameters = new Parameter[1];
            _outputParameters[0] = new SaveFilePram("Save Table");
        }