Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of ProjectionElement
 /// </summary>
 public ProjectionElement(ProjectionParam value)
 {
     _tthelp = new ToolTip();
     base.Param = value;
     InitializeComponent();
     if (value == null) return;
     GroupBox.Text = value.Name;
     if (value.Value != null)
     {
         lblProjection.Text = value.Value.ToProj4String();
     }
     value.ValueChanged += ParamValueChanged;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of ProjectionElement
 /// </summary>
 public ProjectionElement(ProjectionParam value)
 {
     _tthelp    = new ToolTip();
     base.Param = value;
     InitializeComponent();
     if (value == null)
     {
         return;
     }
     GroupBox.Text = value.Name;
     if (value.Value != null)
     {
         lblProjection.Text = value.Value.ToProj4String();
     }
     value.ValueChanged += ParamValueChanged;
 }
Exemplo n.º 3
0
        private void CmdSelectClick(object sender, EventArgs e)
        {
            ProjectionSelectDialog dlg = new ProjectionSelectDialog();

            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            if (Param == null)
            {
                Param = new ProjectionParam("destination projection", dlg.SelectedCoordinateSystem);
            }
            else
            {
                Param.Value = dlg.SelectedCoordinateSystem;
            }
            lblProjection.Text = Param.Value.ToProj4String();
            _tthelp.SetToolTip(lblProjection, Param.Value.ToProj4String());
        }
Exemplo n.º 4
0
        /// <summary>
        /// The parameters array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new FeatureSetParam(TextStrings.InputFeatureSet)
                                 {
                                     HelpText = TextStrings.InputFeatureSettoreproject
                                 };

            _inputParam[1] = new ProjectionParam(TextStrings.SourceProjection)
                                 {
                                     HelpText = TextStrings.sourceprojectiondifferent
                                 };

            _inputParam[2] = new ProjectionParam(TextStrings.DesiredOutputProjection)
                                 {
                                     HelpText = TextStrings.Thedestinationprojection
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet)
                                  {
                                      HelpText = TextStrings.SelectResultFeatureSetDirectory
                                  };
        }
Exemplo n.º 5
0
 private void CmdSelectClick(object sender, EventArgs e)
 {
     ProjectionSelectDialog dlg = new ProjectionSelectDialog();
     if (dlg.ShowDialog() != DialogResult.OK) return;
     if (Param == null)
     {
         Param = new ProjectionParam("destination projection", dlg.SelectedCoordinateSystem);
     }
     else
     {
         Param.Value = dlg.SelectedCoordinateSystem;
     }
     lblProjection.Text = Param.Value.ToProj4String();
     _tthelp.SetToolTip(lblProjection, Param.Value.ToProj4String());
 }