Skip to content

Commit

Permalink
Call setSpatialReference() on the table when we switch stages. (#2980)
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Mar 17, 2020
1 parent a5796bc commit 0012aa7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kernels/TileKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ void TileKernel::process(const Readers& readers)
}
PointId last = idx - 1;

SpatialReference srs = r.getSpatialReference();
if (!srs.empty())
m_table.setSpatialReference(srs);
// Reproject if necessary.
if (m_repro)
{
Expand All @@ -253,6 +256,9 @@ void TileKernel::process(const Readers& readers)
if (!StreamableWrapper::processOne(*m_repro, point))
skips[idx] = true;
}
SpatialReference srs = r.getSpatialReference();
if (!srs.empty())
m_table.setSpatialReference(srs);
}

// Split and write.
Expand Down Expand Up @@ -302,6 +308,7 @@ void TileKernel::adder(PointRef& point, int xpos, int ypos)
m_writers[loc] = sw;

sw->prepare(m_table);
StreamableWrapper::spatialReferenceChanged(*sw, m_outSrs);
StreamableWrapper::ready(*sw, m_table);
}
else
Expand Down

0 comments on commit 0012aa7

Please sign in to comment.