Skip to content

Commit

Permalink
Merge branch 'master' into scoped-srs
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning committed Jun 7, 2017
2 parents 2e1f12f + 535bdc2 commit 22014fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion io/LasWriter.cpp
Expand Up @@ -96,7 +96,8 @@ void LasWriter::addArgs(ProgramArgs& args)
decltype(m_dataformatId)(3));
args.add("format", "Point format", m_dataformatId,
decltype(m_dataformatId)(3));
args.add("global_encoding", "Global encoding byte", m_globalEncoding);
args.add("global_encoding", "Global encoding byte", m_globalEncoding,
decltype(m_globalEncoding)(0));
args.add("project_id", "Project ID", m_projectId);
args.add("system_id", "System ID", m_systemId,
decltype(m_systemId)(m_lasHeader.getSystemIdentifier()));
Expand Down
2 changes: 1 addition & 1 deletion test/unit/io/LasWriterTest.cpp
Expand Up @@ -346,7 +346,7 @@ TEST(LasWriterTest, forward)
EXPECT_EQ(n1.findChild("filesource_id").value<uint8_t>(), 0);
// Global encoding doesn't match because 4_1.las has a bad value, so we
// get the default.
EXPECT_EQ(n1.findChild("global_encoding").value<uint8_t>(), 0);
EXPECT_EQ(n1.findChild("global_encoding").value<uint16_t>(), 0);
EXPECT_EQ(n1.findChild("project_id").value<Uuid>(), Uuid());
EXPECT_EQ(n1.findChild("system_id").value(), "");
EXPECT_EQ(n1.findChild("software_id").value(), "TerraScan");
Expand Down

0 comments on commit 22014fc

Please sign in to comment.