From 724b0cd6ac56e02c168c404cf8dd65633f54a2f5 Mon Sep 17 00:00:00 2001 From: aszabo314 Date: Thu, 14 Mar 2024 14:37:58 +0100 Subject: [PATCH] [LasZip] ReadPoints doesn't close stream --- RELEASE_NOTES.md | 3 +++ src/Aardvark.Data.Points.LasZip/Parser.cs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 43fdf8d..2cceb65 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,6 @@ +### 5.3.4 +- [LasZip] ReadPoints doesn't close stream + ### 5.3.3 - [Obj] added support for normal maps "map_Kn" - [Obj] added support for emissive color maps "map_Ke" diff --git a/src/Aardvark.Data.Points.LasZip/Parser.cs b/src/Aardvark.Data.Points.LasZip/Parser.cs index b91e072..4d9cbb6 100644 --- a/src/Aardvark.Data.Points.LasZip/Parser.cs +++ b/src/Aardvark.Data.Points.LasZip/Parser.cs @@ -103,7 +103,7 @@ public static Info ReadInfo(string filename) public static Info ReadInfo(Stream stream) { var reader = new laszip(); - reader.open_reader_stream(stream, out _); + reader.open_reader_stream(stream, out _, true); return ReadInfo(reader); } @@ -153,7 +153,7 @@ public static IEnumerable ReadPoints(string filename, int numberOfPoints public static IEnumerable ReadPoints(Stream stream, int numberOfPointsPerChunk, bool verbose) { var reader = new laszip(); - reader.open_reader_stream(stream, out _); + reader.open_reader_stream(stream, out _, true); return ReadPoints(reader, numberOfPointsPerChunk, verbose); } ///