Skip to content

Commit

Permalink
Move initialization of zipper/zip point inside ifdef.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Oct 10, 2014
1 parent 439e27d commit 104f4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/las/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,10 @@ void Writer::fillHeader(PointContextRef ctx)

void Writer::readyCompression()
{
#ifdef PDAL_HAVE_LASZIP
m_zipPoint.reset(new ZipPoint(m_lasHeader.pointFormat(),
m_lasHeader.pointLen()));
m_zipper.reset(new LASzipper());
#ifdef PDAL_HAVE_LASZIP
// Note: this will make the VLR count in the header incorrect, but we
// rewrite that bit in done() to fix it up.
std::vector<uint8_t> data = m_zipPoint->vlrData();
Expand Down

0 comments on commit 104f4e0

Please sign in to comment.