Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
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
            };
            _inputParam[1] = new ExtentParam(TextStrings.RasterExtent)
            {
                HelpText           = TextStrings.GeographicExtent,
                DefaultToMapExtent = true
            };
            _inputParam[2] = new IntParam(TextStrings.NumRows)
            {
                HelpText = TextStrings.numberofrows
            };
            _inputParam[3] = new IntParam(TextStrings.NumColumns)
            {
                HelpText = TextStrings.numberofcolums
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemplo n.º 3
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
            };
        }
Exemplo n.º 4
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
                                  };
        }
Exemplo n.º 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RasterElement"/> class.
        /// </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();
        }
Exemplo n.º 6
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[2];
            _outputParam[0] = new PolygonFeatureSetParam(TextStrings.Convertedfeatureset)
            {
                HelpText = TextStrings.featuresetcreated
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemplo n.º 7
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
     };
 }
Exemplo n.º 8
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.InputSecondRasterforSubtract
            };

            _outputParam    = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
        }
Exemplo 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.InputRasterforCliping
            };
            _inputParam[1] = new PolygonFeatureSetParam(TextStrings.input2PolygonforCliping)
            {
                HelpText = TextStrings.InputPolygonforclipingtoRaster
            };

            _outputParam    = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
        }
Exemplo n.º 10
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.InputSecondRasterforSubtract
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemplo n.º 11
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
     };
 }
Exemplo n.º 12
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
            };
        }
Exemplo 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.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
            };
        }
Exemplo n.º 14
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
            };
        }
        /// <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[2];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope)
            {
                HelpText = TextStrings.SelecttheResultofOutput
            };
            _outputParam[2] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemplo 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.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[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.newrastername
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemplo n.º 17
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
            };
        }
Exemplo n.º 18
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 = TextStrings.RasterBinTool_Initialize_BaseValueHelText
            };
            _inputParam[2] = new DoubleParam("Bin size", 10)
            {
                HelpText = TextStrings.RasterBinTool_Initialize_BinSizeHelpText
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster)
            {
                HelpText = TextStrings.Resultofaverageslope
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemplo n.º 19
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RasterElementOut"/> class.
        /// </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
            Status       = ToolStatus.Empty;
            LightTipText = ModelingMessageStrings.FeaturesetMissing;

            // Populates the dialog with the default parameter value
            if (outputParam.Value != null && outputParam.DefaultSpecified)
            {
                textBox1.Text = outputParam.ModelName;
                Status        = ToolStatus.Ok;
                LightTipText  = ModelingMessageStrings.FeaturesetValid;
            }
        }
Exemplo n.º 20
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
            };
        }