Skip to content

Commit

Permalink
only set vlrs if metadata option exists
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Aug 20, 2012
1 parent 89e2805 commit 705cfc9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/drivers/las/Writer.cpp
Expand Up @@ -449,13 +449,15 @@ void Writer::writeBufferBegin(PointBuffer const& data)
<< filesource_id
<< " from metadata " << std::endl;

// if (doForwardThisMetadata("vlr"))
// {
try
{

boost::optional<pdal::Options const&> opts = \
getOptions().getOption("metadata").getOptions();
if (opts)
setVLRsFromMetadata(m_lasHeader, m, *opts);
// }
} catch (pdal::option_not_found&) { }


} // useMetadata

Expand Down

0 comments on commit 705cfc9

Please sign in to comment.