Ejemplo n.º 1
0
        private void btnSelectSpatialRef_Click(object sender, EventArgs e)
        {
            IRasterWorkspaceEx  ex;
            ISpatialReference   reference2;
            frmSpatialReference reference = new frmSpatialReference();

            if (this.ispatialReference_0 == null)
            {
                ex         = this.igxObject_0.InternalObjectName.Open() as IRasterWorkspaceEx;
                reference2 = this.method_1(ex as IGeodatabaseRelease);
            }
            else
            {
                reference2 = this.ispatialReference_0;
            }
            reference.SpatialRefrence = reference2;
            if (reference.ShowDialog() == DialogResult.OK)
            {
                this.ispatialReference_0    = reference.SpatialRefrence;
                this.txtSpatialRefName.Text = this.ispatialReference_0.Name;
                if (this.igxObject_0 != null)
                {
                    ex = this.igxObject_0.InternalObjectName.Open() as IRasterWorkspaceEx;
                    this.method_0(ex as IGeodatabaseRelease, this.ispatialReference_0);
                    ComReleaser.ReleaseCOMObject(ex);
                }
            }
        }
Ejemplo n.º 2
0
        private void btnSR_Click(object sender, EventArgs e)
        {
            frmSpatialReference reference = new frmSpatialReference
            {
                SpatialRefrence = this.ispatialReference_0
            };

            if (reference.ShowDialog() == DialogResult.OK)
            {
                this.ispatialReference_0 = reference.SpatialRefrence;
                this.txtOutSR.Text       = this.ispatialReference_0.Name;
            }
        }
Ejemplo n.º 3
0
        private void btnSelectRasterSpatialRef_Click(object sender, EventArgs e)
        {
            frmSpatialReference reference = new frmSpatialReference
            {
                SpatialRefrence = this.ispatialReference_1
            };

            if (reference.ShowDialog() == DialogResult.OK)
            {
                this.ispatialReference_1          = reference.SpatialRefrence;
                this.txtRasterSpatialRefName.Text = this.ispatialReference_1.Name;
            }
        }
Ejemplo n.º 4
0
        private void btnSetSR_Click(object sender, EventArgs e)
        {
            frmSpatialReference reference = new frmSpatialReference
            {
                SpatialRefrence = this.igeometryDefEdit_0.SpatialReference
            };

            if (reference.ShowDialog() == DialogResult.OK)
            {
                this.igeometryDefEdit_0.SpatialReference_2 = reference.SpatialRefrence;
                this.txtSpatialReference.Text   = this.igeometryDefEdit_0.SpatialReference.Name;
                this.ifieldEdit_0.GeometryDef_2 = this.igeometryDefEdit_0;
            }
        }
Ejemplo n.º 5
0
        private void btnSelectCoordinate_Click(object sender, EventArgs e)
        {
            ISpatialReference tag = this.btnSelectCoordinate.Tag as ISpatialReference;

            if (tag == null)
            {
                tag = new UnknownCoordinateSystemClass();
            }
            frmSpatialReference reference2 = new frmSpatialReference
            {
                SpatialRefrence = tag
            };

            if (reference2.ShowDialog() == DialogResult.OK)
            {
                this.btnSelectCoordinate.Tag  = tag;
                this.btnSelectCoordinate.Text = tag.Name;
            }
        }
Ejemplo n.º 6
0
        private void btnEditSR_Click(object sender, EventArgs e)
        {
            frmSpatialReference reference = new frmSpatialReference
            {
                SpatialRefrence = this.ispatialReference_0,
                HasXY           = true,
                HasZ            = true,
                HasM            = true
            };

            if (reference.ShowDialog() == DialogResult.OK)
            {
                this.ispatialReference_0        = reference.SpatialRefrence;
                this.memoEditSRDescription.Text = this.GetSpatialRefrenceInfo(this.ispatialReference_0,
                                                                              this.chkShowDetail.Checked);
                if (this.ValueChanged != null)
                {
                    this.ValueChanged(this, e);
                }
            }
        }