[Liblas-commits] hg: make default formatid ePointFormat3,
not ePointFormat0
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Oct 1 15:28:55 EDT 2010
changeset af0e4d93cbe5 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=af0e4d93cbe5
summary: make default formatid ePointFormat3, not ePointFormat0
diffstat:
src/lasheader.cpp | 17 +----------------
test/unit/common.cpp | 4 ++--
2 files changed, 3 insertions(+), 18 deletions(-)
diffs (49 lines):
diff -r 98adc5fafb38 -r af0e4d93cbe5 src/lasheader.cpp
--- a/src/lasheader.cpp Thu Sep 30 09:37:12 2010 -0500
+++ b/src/lasheader.cpp Fri Oct 01 14:28:46 2010 -0500
@@ -67,7 +67,7 @@
char const* const Header::SoftwareIdentifier = "libLAS 1.2";
-Header::Header() : m_schema(ePointFormat0)
+Header::Header() : m_schema(ePointFormat3)
{
Init();
}
@@ -652,21 +652,6 @@
return m_schema;
}
-// void Header::UpdateSchema()
-// {
-// m_schema
-// // if (GetDataFormatId() == liblas::ePointFormat3) {
-// // m_schema.Color(true);
-// // m_schema.Time(true);
-// // } else if (GetDataFormatId() == liblas::ePointFormat2) {
-// // m_schema.Color(true);
-// // m_schema.Time(false);
-// // } else if (GetDataFormatId() == liblas::ePointFormat1) {
-// // m_schema.Color(false);
-// // m_schema.Time(true);
-// // }
-// }
-
void Header::SetSchema(const Schema& format)
{
diff -r 98adc5fafb38 -r af0e4d93cbe5 test/unit/common.cpp
--- a/test/unit/common.cpp Thu Sep 30 09:37:12 2010 -0500
+++ b/test/unit/common.cpp Fri Oct 01 14:28:46 2010 -0500
@@ -63,9 +63,9 @@
ensure_equals("wrong default records count",
h.GetRecordsCount(), boost::uint32_t(0));
ensure_equals("wrong default data format id",
- h.GetDataFormatId(), liblas::ePointFormat0);
+ h.GetDataFormatId(), liblas::ePointFormat3);
ensure_equals("wrong default data record length",
- h.GetDataRecordLength(), liblas::ePointSize0);
+ h.GetDataRecordLength(), liblas::ePointSize3);
ensure_equals("wrong default point records count",
h.GetPointRecordsCount(), boost::uint32_t(0));
More information about the Liblas-commits
mailing list