public bool ParseMainFile() { this.OpenFileStream(this.Path + ".shp"); if (IsStreamReadable()) { this.Shpfile.SetHeader(ShapefileReaderManager.GetHeader(this.readStream)); this.Shpfile.SetRecords(ShapefileReaderManager.GetAllMainRecords(this.readStream)); this.CloseFileStream(); return(true); } else { return(false); } }
public bool ReadMainHeader(bool keepOpen) { this.OpenFileStream(this.Path + ".shp"); if (IsStreamReadable()) { this.Shpfile.SetHeader(ShapefileReaderManager.GetHeader(this.readStream)); if (!keepOpen) { this.CloseFileStream(); } return(true); } else { return(false); } }