/// <summary> /// Reads the reference system. /// </summary> private void ReadReferenceSystem() { // read the reference system from the WKT text using (StreamReader reader = new StreamReader(OpenPath(ReferenceSystemFilePath))) { StringBuilder builder = new StringBuilder(); while (!reader.EndOfStream) { builder.Append(reader.ReadLine().Trim()); } _referenceSystem = WellKnownTextConverter.ToReferenceSystem(builder.ToString()); } }
/// <summary> /// Reads the reference system. /// </summary> private void ReadReferenceSystem() { // read the reference system from the WKT text using (StreamReader reader = new StreamReader(_fileSystem.OpenFile(_basePath + _fileSystem.DirectorySeparator + _baseFileName + ".prj", FileMode.Open))) { StringBuilder builder = new StringBuilder(); while (!reader.EndOfStream) { builder.Append(reader.ReadLine().Trim()); } _referenceSystem = WellKnownTextConverter.ToReferenceSystem(builder.ToString()); } }