Skip to content

Commit

Permalink
Set correct initial offset for proper chunk size.
Browse files Browse the repository at this point in the history
Remove debug.
  • Loading branch information
abellgithub committed Sep 23, 2015
1 parent 20db7d2 commit 6178bd3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions include/pdal/Compression.hpp
Expand Up @@ -237,6 +237,7 @@ class LazPerfVlrCompressor
m_chunkInfoPos = m_stream.tellp();
// Seek over the chunk info offset value
m_stream.seekp(sizeof(uint64_t), std::ios::cur);
m_chunkOffset = m_stream.tellp();
resetCompressor();
}
else if (m_chunkPointsWritten == m_chunksize)
Expand Down
3 changes: 0 additions & 3 deletions io/las/LasWriter.cpp
Expand Up @@ -654,7 +654,6 @@ void LasWriter::readyLazPerfCompression()

m_compressor.reset(new LazPerfVlrCompressor(*m_ostream, schema,
zipvlr.chunk_size));
std::cerr << "Made perf VLR!\n";
#endif
}

Expand Down Expand Up @@ -740,7 +739,6 @@ void LasWriter::writeLazPerfBuf(char *pos, size_t pointLen,
m_compressor->compress(pos);
pos += pointLen;
}
std::cerr << "Wrote " << numPts << " points with LazPerf compressor!\n";
#endif
}

Expand Down Expand Up @@ -992,7 +990,6 @@ void LasWriter::finishLazPerfOutput()
{
#ifdef PDAL_HAVE_LAZPERF
m_compressor->done();
std::cerr << "Done with laz perf!\n";
#endif
}

Expand Down
1 change: 0 additions & 1 deletion test/unit/io/las/LasWriterTest.cpp
Expand Up @@ -488,7 +488,6 @@ TEST(LasWriterTest, lazperf)
PointTable t;
lazWriter.prepare(t);
lazWriter.execute(t);
std::cerr << "Wrote file!\n";

// Now test the points were properly written. Use laszip.
Options ops1;
Expand Down

0 comments on commit 6178bd3

Please sign in to comment.