Esempio n. 1
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逻辑
 }