Example #1
0
 public static void WriteShpBody(BinaryWriter binaryWriter, ShpFileBody shpBody)
 {
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpBody.recordNo);
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpBody.recordLength);
     binaryWriter.Write(shpBody.recordContent);
     //写Body逻辑
 }
Example #2
0
 public static void WriteShpHeader(BinaryWriter binaryWriter, ShpHeader shpHeader)
 {
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpHeader.fileCode);
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpHeader.unUse1);
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpHeader.unUse2);
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpHeader.unUse3);
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpHeader.unUse4);
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpHeader.unUse5);
     ShpFunction.WriteInt32WithBigEnduim(binaryWriter, shpHeader.fileLength);
     binaryWriter.Write(shpHeader.fileVersion);
     binaryWriter.Write(shpHeader.shapeType);
     ShpFunction.WriteBoundingBox(binaryWriter, shpHeader.boundingBox);
     //写header逻辑
 }