有若干不同图幅的JPG格式影像,为接边方便有重叠,现需要吧重复的外围部分裁剪掉,如何处理,谁做过的能不能给点代码或思路提示,谢过。
            

        }
        public IPolygon CreatePolygon(double StartX, double StartY, double dx, double dy)
        {
            IPointCollection4 pPntsCol;
            IPoint pLeftBottomPoint, pLeftTopPoint, pRightTopPoint, pRightBottomPoint;
            pPntsCol = new PolygonClass();

            pLeftBottomPoint = new PointClass();
            pLeftBottomPoint.X = StartX;
            pLeftBottomPoint.Y = StartY;
            object missing = Type.Missing;
            pPntsCol.AddPoint(pLeftBottomPoint, ref missing, ref missing);

            pLeftTopPoint = new PointClass();
            pLeftTopPoint.X = StartX;
            pLeftTopPoint.Y = StartY + dy;
            pPntsCol.AddPoint(pLeftTopPoint, ref missing, ref missing);

            pRightTopPoint = new PointClass();
            pRightTopPoint.X = StartX + dx;
            pRightTopPoint.Y = StartY + dy;
            pPntsCol.AddPoint(pRightTopPoint, ref missing, ref missing);


            pRightBottomPoint = new PointClass();
            pRightBottomPoint.X = StartX + dx;
            pRightBottomPoint.Y = StartY;
            pPntsCol.AddPoint(pRightBottomPoint, ref missing, ref missing);

            IPolygon4 pPoly = pPntsCol as IPolygon4;
            pPoly.Close();
            
            IMap pMap = axMapControl1.Map;
            ISpatialReference pSRMap = pMap.SpatialReference;// as ISpatialReference;
            pPoly.SpatialReference = pSRMap;
            
            IPolygon pReturnPolygon = pPoly as IPolygon;
            return pReturnPolygon;

        }

相关文章:

  • 2021-11-30
  • 2021-12-29
  • 2021-07-11
  • 2021-09-08
  • 2021-06-30
  • 2021-04-01
  • 2021-05-31
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2021-09-15
  • 2021-04-28
  • 2021-12-12
  • 2022-01-15
  • 2022-01-12
相关资源
相似解决方案