Log I/O
|
Class for writing LAS files to disk. More...
Public Member Functions | |
void | Append (LasFile lasFile) |
Append the curve data of the specified LAS file. | |
void | Close () |
Close the back-end stream. | |
LasFileWriter (FileInfo file) | |
Create a LAS writer for the specified file instance. | |
LasFileWriter (Stream outputStream) | |
Create a LAS file writer for the specified stream. | |
void | Write (LasFile lasFile) |
Write the specified LAS file instance. | |
Static Public Member Functions | |
static string | ToString (LasFile lasFile) |
Convenience method for returning a string representation of the specified LAS file. | |
Class for writing LAS files to disk.
Typical usage:
LasFileWriter writer = new LasFileWriter(new FileInfo("path/to/file.json")); writer.Write(lasFile); writer.Close();
If there is to much data to keep in memory, or the writing is based on a streaming source, it is possible to append chunks of data to the last LasFile instance written, like:
LasFileWriter writer = new LasFileWriter(new FileInfo("path/to/file.json")); writer.Write(lasFile); writer.Append(lasFile); writer.Append(lasFile); : writer.Close();
LasFileWriter | ( | Stream | outputStream | ) |
Create a LAS file writer for the specified stream.
outputStream | Stream to write. Non-null. |
ArgumentNullException | If outputStream is null. |
LasFileWriter | ( | FileInfo | file | ) |
Create a LAS writer for the specified file instance.
file | Disk file to write. Non-null. |
ArgumentNullException | If file is null. |
void Append | ( | LasFile | lasFile | ) |
Append the curve data of the specified LAS file.
lasFile | LAS file of data to append to the stream. Non-null. |
ArgumentNullException | If lasFile is null. |
InvalidOperationException | If the writer is not open for writing. |
IOException | If the write operation fails for some reason. |
|
static |
Convenience method for returning a string representation of the specified LAS file.
lasFile | LAS file to write. Non-null. |
ArgumentNullException | If lasFile is null. |
void Write | ( | LasFile | lasFile | ) |
Write the specified LAS file instance.
lasFile | LAS file instance to write. Non-null. |
ArgumentNullException | If lasFile is null. |
IOException | If the write operation fails for some reason. |