Пример #1
0
        public void Transform(esriTransformDirection direction, ITransformation transformation)
        {
            object           before = Missing.Value;
            IPointCollection points = new ESRI.ArcGIS.Geometry.Polygon();

            points.AddPoint(this.m_pGeometry.LowerLeft, ref before, ref before);
            points.AddPoint(this.m_pGeometry.LowerRight, ref before, ref before);
            points.AddPoint(this.m_pGeometry.UpperRight, ref before, ref before);
            points.AddPoint(this.m_pGeometry.UpperLeft, ref before, ref before);
            (points as IPolygon).Close();
            (points as IGeometry).SpatialReference = this.m_pGeometry.SpatialReference;
            (points as ITransform2D).Transform(direction, transformation);
            IEnvelope envelope = (points as IPolygon).Envelope;

            this.m_pGeometry = envelope;
            this.RefreshTracker();
        }