Skip to content

Commit

Permalink
Merge pull request #147 from c42f/mosaic_srs_ignore
Browse files Browse the repository at this point in the history
Allow SRS to be ignored in Mosaic filter
  • Loading branch information
hobu committed Jul 1, 2013
2 parents 2d99abf + bf6b982 commit 418fffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filters/Mosaic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void Mosaic::initialize()

const Stage& stage0 = *stages[0];
const SpatialReference& srs0 = stage0.getSpatialReference();
const bool ignoreSrs = getOptions().getValueOrDefault<bool>("ignore_srs", false);
const Schema& schema0 = stage0.getSchema();
PointCountType pointCountType0 = stage0.getPointCountType();
boost::uint64_t totalPoints = stage0.getNumPoints();
Expand All @@ -68,7 +69,7 @@ void Mosaic::initialize()
for (boost::uint32_t i=1; i<stages.size(); i++)
{
Stage& stage = *(stages[i]);
if (stage.getSpatialReference() != srs0)
if (!ignoreSrs && stage.getSpatialReference() != srs0)
throw impedance_invalid("mosaicked stages must have same srs");
if (stage.getSchema() != schema0)
throw impedance_invalid("mosaicked stages must have same schema");
Expand Down

0 comments on commit 418fffb

Please sign in to comment.