Skip to content

Commit

Permalink
cumulate the entire bounds as we go through for the whole SDO_PC
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Aug 10, 2013
1 parent 413f657 commit 1008495
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/drivers/oci/Writer.cpp
Expand Up @@ -1279,6 +1279,14 @@ bool Writer::WriteBlock(PointBuffer const& buffer)

// x0, x1, y0, y1, z0, z1, bUse3d
pdal::Bounds<double> bounds = buffer.calculateBounds(true);

// Cumulate a total bounds for the iterator
if (m_pcExtent.empty())
m_pcExtent = bounds;
m_pcExtent.grow(bounds);

std::cout << bounds << std::endl;

SetOrdinates(statement, sdo_ordinates, bounds);
statement->Bind(&sdo_ordinates, m_connection->GetOrdinateType());

Expand Down

0 comments on commit 1008495

Please sign in to comment.