public override void Write(BinaryWriter writer, IShapefileHeader value, WordCount origin) { FileCode.Write(writer, FileCodeValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value. Unused1.Write(writer, UnusedValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value. Unused2.Write(writer, UnusedValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value. Unused3.Write(writer, UnusedValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value. Unused4.Write(writer, UnusedValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value. Unused5.Write(writer, UnusedValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value. FileLength.Write(writer, value.FileLength, origin); Version.Write(writer, VersionValue, origin); //TODO: ShapefileHeader should be constructed with this const value... then we write the property value. ShapeType.Write(writer, value.ShapeType, origin); BoxMin.Write(writer, value.BoundingBox.Min, origin); BoxMax.Write(writer, value.BoundingBox.Max, origin); }
public override IShapefileHeader Read(BinaryReader reader, WordCount origin) { return(new ShapefileHeader() { BoundingBox = new BoundingBox <IPointZ>() { Min = BoxMin.Read(reader, origin), Max = BoxMax.Read(reader, origin) }, FileCode = FileCode.Read(reader, origin), FileLength = FileLength.Read(reader, origin), ShapeType = (ShapeType)ShapeType.Read(reader, origin), Version = Version.Read(reader, origin) }); }