Skip to content
Commits on Source (4)
20 March 2019 -- upped to 3.3 r1 for checking consistent legacy and extended classification for new point types
19 March 2019 -- bug fix when decompressing new point types: zero "legacy classification" if "classification" > 31
7 March 2019 -- upped to 3.3 r0 because hobu was suggesting it for the next release
21 February 2019 -- bug fix when writing 4,294,967,296 or more points uncompressed to LAS
28 December 2018 -- fix for LASzip v4 decompression of WavePacket part of PRDF 9 and 10
27 December 2018 -- upped to 3.2 r9 for bug fix in multi-channel NIR decompression
......
......@@ -7,7 +7,7 @@ set(ROOT_DIR "${PROJECT_SOURCE_DIR}")
# the next line is the ONLY place in the entire laszip system where
# the version info is hard-coded
set(LASZIP_API_VERSION_STRING "3.3.0" CACHE STRING "LASzip version" FORCE)
set(LASZIP_API_VERSION_STRING "3.3.1" CACHE STRING "LASzip version" FORCE)
include (CheckIncludeFileCXX)
include(${ROOT_DIR}/cmake/common.cmake NO_POLICY_SCOPE)
......
laszip (3.3.0-1) UNRELEASED; urgency=medium
laszip (3.3.1-1) UNRELEASED; urgency=medium
TODO: FastAC license issue needs to be resolved, see:
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750731#16
- https://trac.osgeo.org/osgeolive/ticket/1341#comment:2
- https://lists.osgeo.org/pipermail/standards/2015-April/000863.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1674537
- https://github.com/LASzip/LASzip/issues/55
* Initial release. (Closes: #750731)
-- Bas Couwenberg <sebastic@debian.org> Sun, 17 Mar 2019 08:13:05 +0100
-- Bas Couwenberg <sebastic@debian.org> Thu, 28 Mar 2019 17:33:37 +0100
......@@ -893,11 +893,15 @@ inline void LASreadItemCompressed_POINT14_v3::read(U8* item, U32& context)
}
((LASpoint14*)last_item)->classification = dec_classification->decodeSymbol(contexts[current_context].m_classification[ccc]);
// legacy copies
// update the legacy copy
if (((LASpoint14*)last_item)->classification < 32)
{
((LASpoint14*)last_item)->legacy_classification = ((LASpoint14*)last_item)->classification;
}
else
{
((LASpoint14*)last_item)->legacy_classification = 0;
}
}
////////////////////////////////////////
......
......@@ -13,7 +13,7 @@
COPYRIGHT:
(c) 2007-2017, martin isenburg, rapidlasso - fast tools to catch reality
(c) 2007-2019, martin isenburg, rapidlasso - fast tools to catch reality
This is free software; you can redistribute and/or modify it under the
terms of the GNU Lesser General Licence as published by the Free Software
......@@ -24,6 +24,7 @@
CHANGE HISTORY:
19 March 2019 -- set "legacy classification" to zero if "classification > 31"
28 August 2017 -- moving 'context' from global development hack to interface
19 April 2017 -- support for selective decompression for new LAS 1.4 points
22 June 2016 -- created after Island beat Austria 2:1 in the EM2016
......
......@@ -893,11 +893,15 @@ inline void LASreadItemCompressed_POINT14_v4::read(U8* item, U32& context)
}
((LASpoint14*)last_item)->classification = dec_classification->decodeSymbol(contexts[current_context].m_classification[ccc]);
// legacy copies
// update the legacy copy
if (((LASpoint14*)last_item)->classification < 32)
{
((LASpoint14*)last_item)->legacy_classification = ((LASpoint14*)last_item)->classification;
}
else
{
((LASpoint14*)last_item)->legacy_classification = 0;
}
}
////////////////////////////////////////
......
......@@ -13,7 +13,7 @@
COPYRIGHT:
(c) 2007-2017, martin isenburg, rapidlasso - fast tools to catch reality
(c) 2007-2019, martin isenburg, rapidlasso - fast tools to catch reality
This is free software; you can redistribute and/or modify it under the
terms of the GNU Lesser General Licence as published by the Free Software
......@@ -24,6 +24,7 @@
CHANGE HISTORY:
19 March 2019 -- set "legacy classification" to zero if "classification > 31"
28 December 2017 -- fix incorrect 'context switch' reported by Wanwannodao
28 August 2017 -- moving 'context' from global development hack to interface
19 April 2017 -- support for selective decompression for new LAS 1.4 points
......
......@@ -25,6 +25,7 @@
CHANGE HISTORY:
20 March 2019 -- upped to 3.3 r1 for consistent legacy and extended class check
21 February 2019 -- bug fix when writing 4294967295+ points uncompressed to LAS
28 December 2018 -- fix for v4 decompression of WavePacket part of PRDF 9 and 10
27 December 2018 -- upped to 3.2 r9 for bug fix in multi-channel NIR decompression
......@@ -73,8 +74,8 @@ typedef long long SIGNED_INT64;
#define LASZIP_VERSION_MAJOR 3
#define LASZIP_VERSION_MINOR 3
#define LASZIP_VERSION_REVISION 0
#define LASZIP_VERSION_BUILD_DATE 190308
#define LASZIP_VERSION_REVISION 1
#define LASZIP_VERSION_BUILD_DATE 190319
#define LASZIP_COMPRESSOR_NONE 0
#define LASZIP_COMPRESSOR_POINTWISE 1
......
......@@ -24,6 +24,7 @@
CHANGE HISTORY:
20 March 2019 -- check consistent legacy and extended classification in laszip_write_point()
7 November 2018 -- assure identical legacy and extended flags in laszip_write_point()
20 October 2018 -- changed (U8*) to (const U8*) for all out->put___() calls
5 October 2018 -- corrected 'is_empty' return value in laszip_inside_rectangle()
......@@ -3027,6 +3028,16 @@ laszip_write_point(
sprintf(laszip_dll->error, "legacy flags and extended flags are not identical");
return 1;
}
// make sure legacy classification is zero or identical to extended classification
if (laszip_dll->point.classification != 0)
{
if (laszip_dll->point.classification != laszip_dll->point.extended_classification)
{
sprintf(laszip_dll->error, "legacy classification %d and extended classification %d are not consistent", laszip_dll->point.classification, laszip_dll->point.extended_classification);
return 1;
}
}
}
// special recoding of points (in compatibility mode only)
......