Esempio n. 1
0
        public static ShpHeader MergeShpHeader(ShpHeader shpHeader1, ShpHeader ShpHeader2)
        {
            ShpHeader newShpHeader = new ShpHeader();

            newShpHeader.fileCode    = shpHeader1.fileCode;
            newShpHeader.unUse1      = shpHeader1.unUse1;
            newShpHeader.unUse2      = shpHeader1.unUse2;
            newShpHeader.unUse3      = shpHeader1.unUse3;
            newShpHeader.unUse4      = shpHeader1.unUse4;
            newShpHeader.unUse5      = shpHeader1.unUse5;
            newShpHeader.fileLength  = shpHeader1.fileLength + ShpHeader2.fileLength - 50;
            newShpHeader.fileVersion = shpHeader1.fileVersion;
            newShpHeader.shapeType   = shpHeader1.shapeType;
            newShpHeader.boundingBox = ShpFunction.MergeBoundingBox(shpHeader1.boundingBox, ShpHeader2.boundingBox);
            //合并逻辑
            return(newShpHeader);
        }