mreutegg / laszip4j

The LASzip library ported to Java
GNU Lesser General Public License v2.1
36 stars 16 forks source link

Write las files #73

Closed mreutegg closed 1 year ago

mreutegg commented 1 year ago

The changes in this PR introduce support for writing las files.

So far I tested these changes by reading a laz file and writing data into las format with the following command.

java -jar laszip4j-0.13-SNAPSHOT.jar -i 26690_12570.laz -o 26690_12570.las

Then compared the result with the output from running the same with the native/original laszip tool.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 17.47% and project coverage change: +1.30 :tada:

Comparison is base (fbfd898) 16.97% compared to head (0946094) 18.28%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #73 +/- ## ============================================ + Coverage 16.97% 18.28% +1.30% - Complexity 513 630 +117 ============================================ Files 135 165 +30 Lines 11225 12283 +1058 Branches 2441 2727 +286 ============================================ + Hits 1906 2246 +340 - Misses 9068 9548 +480 - Partials 251 489 +238 ``` | [Impacted Files](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [...b/mreutegg/laszip4j/laslib/LASvlr\_lasoriginal.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc2xpYi9MQVN2bHJfbGFzb3JpZ2luYWwuamF2YQ==) | `0.00% <ø> (ø)` | | | [.../com/github/mreutegg/laszip4j/lastools/Laszip.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3Rvb2xzL0xhc3ppcC5qYXZh) | `12.50% <ø> (+12.50%)` | :arrow_up: | | [...github/mreutegg/laszip4j/laszip/ByteStreamOut.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9CeXRlU3RyZWFtT3V0LmphdmE=) | `5.88% <ø> (+5.88%)` | :arrow_up: | | [...b/mreutegg/laszip4j/laszip/ByteStreamOutArray.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9CeXRlU3RyZWFtT3V0QXJyYXkuamF2YQ==) | `0.00% <0.00%> (ø)` | | | [...utegg/laszip4j/laszip/ByteStreamOutDataOutput.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9CeXRlU3RyZWFtT3V0RGF0YU91dHB1dC5qYXZh) | `0.00% <0.00%> (ø)` | | | [...mreutegg/laszip4j/laszip/ByteStreamOutOstream.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9CeXRlU3RyZWFtT3V0T3N0cmVhbS5qYXZh) | `0.00% <ø> (ø)` | | | [...ub/mreutegg/laszip4j/laszip/IntegerCompressor.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9JbnRlZ2VyQ29tcHJlc3Nvci5qYXZh) | `37.34% <0.00%> (-0.48%)` | :arrow_down: | | [.../github/mreutegg/laszip4j/laszip/LASquantizer.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9MQVNxdWFudGl6ZXIuamF2YQ==) | `45.45% <ø> (ø)` | | | [...p4j/laszip/LASreadItemCompressed\_GPSTIME11\_v1.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9MQVNyZWFkSXRlbUNvbXByZXNzZWRfR1BTVElNRTExX3YxLmphdmE=) | `0.00% <0.00%> (ø)` | | | [...zip4j/laszip/LASreadItemCompressed\_POINT10\_v1.java](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL21haW4vamF2YS9jb20vZ2l0aHViL21yZXV0ZWdnL2xhc3ppcDRqL2xhc3ppcC9MQVNyZWFkSXRlbUNvbXByZXNzZWRfUE9JTlQxMF92MS5qYXZh) | `0.00% <0.00%> (ø)` | | | ... and [46 more](https://codecov.io/gh/mreutegg/laszip4j/pull/73?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | | ... and [9 files with indirect coverage changes](https://codecov.io/gh/mreutegg/laszip4j/pull/73/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 71 Code Smells

25.2% 25.2% Coverage
4.4% 4.4% Duplication

mreutegg commented 1 year ago

Note, this PR also contains some fixes to code that reads data from laz files.