Skip to content

Commit

Permalink
put copyLikeDimensions behavior back to not updating point count #215
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Dec 2, 2013
1 parent aa685b3 commit bb35b7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/PointBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ void PointBuffer::copyLikeDimensions(PointBuffer const& source,
}

}
destination.setNumPoints(howMany);

}

Expand Down
2 changes: 1 addition & 1 deletion src/drivers/pgpointcloud/Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,14 @@ boost::uint32_t Iterator::readBufferImpl(PointBuffer& user_buffer)

// Do the copying from cache to user buffer
// To do: this should be more tolerant of variations in source/dest schema
// copyLikeDimensions updates user_buffer.getNumPoints()
PointBuffer::copyLikeDimensions(*m_buffer, user_buffer,
*m_dimension_map,
m_buffer_position, user_buffer.getNumPoints(),
points_to_copy);

// Update the buffers regarding how full/empty they are
m_buffer_position += points_to_copy;
user_buffer.setNumPoints(user_buffer.getNumPoints()+points_to_copy);

num_loops++;
getReader().log()->get(logDEBUG2) << "User buffer filling loop, iteration " << num_loops << std::endl;
Expand Down

0 comments on commit bb35b7d

Please sign in to comment.