[Liblas-commits] hg: tabbing fix
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Jan 19 11:43:24 EST 2011
details: http://hg.liblas.orghg/rev/53a7a4fd2a62
changeset: 2791:53a7a4fd2a62
user: Michael P. Gerlek <mpg at flaxen.com>
date: Wed Jan 19 08:43:02 2011 -0800
description:
tabbing fix
Subject: hg: VS2010 lint
details: http://hg.liblas.orghg/rev/afc2552661b7
changeset: 2792:afc2552661b7
user: Michael P. Gerlek <mpg at flaxen.com>
date: Wed Jan 19 08:43:16 2011 -0800
description:
VS2010 lint
diffstat:
apps/lasindex_test.cpp | 872 +++++++++++++++++++++++-----------------------
test/unit/writer_test.cpp | 2 +-
2 files changed, 437 insertions(+), 437 deletions(-)
diffs (truncated from 920 to 300 lines):
diff -r 3bef354aaca7 -r afc2552661b7 apps/lasindex_test.cpp
--- a/apps/lasindex_test.cpp Wed Jan 19 08:30:11 2011 -0800
+++ b/apps/lasindex_test.cpp Wed Jan 19 08:43:16 2011 -0800
@@ -170,186 +170,186 @@
bool ReportIteratorResults(FILE *debugger, uint32_t resultSize, uint32_t pointCount, uint32_t step)
{
- if (resultSize)
- {
- // do something with the list of points
- #ifdef VISUAL_8
- fprintf(debugger, "Points within filter area %d of %d, step %d, %s\n", resultSize,
- pointCount, step, "Using iterator");
- #else // VISUAL_8
- fprintf(debugger, "Points within filter area %d of %d, step %d, %s\n", resultSize,
- pointCount, step, "Using iterator");
- #endif // VISUAL_8
- return true;
- }
- else
- {
- IndexFilterNoPoints(debugger);
- return false;
- } // else
+ if (resultSize)
+ {
+ // do something with the list of points
+ #ifdef VISUAL_8
+ fprintf(debugger, "Points within filter area %d of %d, step %d, %s\n", resultSize,
+ pointCount, step, "Using iterator");
+ #else // VISUAL_8
+ fprintf(debugger, "Points within filter area %d of %d, step %d, %s\n", resultSize,
+ pointCount, step, "Using iterator");
+ #endif // VISUAL_8
+ return true;
+ }
+ else
+ {
+ IndexFilterNoPoints(debugger);
+ return false;
+ } // else
} // ReportIteratorResults
int main(int argc, char* argv[])
{
- char *tmpfilenme = 0;
- char *lasinfilenme = 0;
- char *lasoutfilenme = 0;
- char *idxinfilenme = 0;
- char *authorname = 0;
- char *commentfield = 0;
- char *datefield = 0;
- double zbinheight = 0.0;
- double oLowFilterX = 0.0, oHighFilterX = 0.0, oLowFilterY = 0.0, oHighFilterY = 0.0, oLowFilterZ = 0.0, oHighFilterZ = 0.0;
- boost::uint32_t maxmem = 0;
- boost::uint32_t chunkSize = 100;
- int debuglevel = 3;
- bool readonly = 0;
- bool forcenewindex = 0;
- bool boundssetbyuser = 0;
- bool writestandaloneindex = 0;
- bool useiterator = 0;
- FILE *debugger = stderr;
-
- // temporary until argv[] starts to work
- // uncomment only one of these blocks
- /*------------------------------N1440375----------------------------------*/
- /*------------------------build embedded index------------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\N1440375.tmp",
- "-i", "C:\\LibLAS\\Samples\\N1440375.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\N1440375_idx.las"};
- argc = 13;
- */
- /*-----------------build index in standalone file---------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\N1440375.tmp",
- "-i", "C:\\LibLAS\\Samples\\N1440375.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\N1440375_idx.ldx", "-s"};
- argc = 14;
- */
- /*------------------filter with embedded index------------------------------
- const char* arggv[] = {"foo",
- "-i", "C:\\LibLAS\\Samples\\N1440375_idx.las", "-r"};
- argc = 4;
- */
- /*-------------------filter from standalone file----------------------------
- const char* arggv[] = {"foo", "-i", "C:\\LibLAS\\Samples\\N1440375.las",
- "-n", "C:\\LibLAS\\Samples\\N1440375_idx.ldx", "-r"};
- argc = 6;
- */
- /*-----------------build embedded index, filter with user bounds------------ */
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\N1440375.tmp",
- "-i", "C:\\LibLAS\\Samples\\N1440375.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\N1440375_idx.las",
- "-x", "1443000.00", "1444000.00", "-y", "376000.02", "379000.00", "-z", "850.00", "950.00"};
- argc = 22;
+ char *tmpfilenme = 0;
+ char *lasinfilenme = 0;
+ char *lasoutfilenme = 0;
+ char *idxinfilenme = 0;
+ char *authorname = 0;
+ char *commentfield = 0;
+ char *datefield = 0;
+ double zbinheight = 0.0;
+ double oLowFilterX = 0.0, oHighFilterX = 0.0, oLowFilterY = 0.0, oHighFilterY = 0.0, oLowFilterZ = 0.0, oHighFilterZ = 0.0;
+ boost::uint32_t maxmem = 0;
+ boost::uint32_t chunkSize = 100;
+ int debuglevel = 3;
+ bool readonly = 0;
+ bool forcenewindex = 0;
+ bool boundssetbyuser = 0;
+ bool writestandaloneindex = 0;
+ bool useiterator = 0;
+ FILE *debugger = stderr;
+
+ // temporary until argv[] starts to work
+ // uncomment only one of these blocks
+ /*------------------------------N1440375----------------------------------*/
+ /*------------------------build embedded index------------------------------
+ const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\N1440375.tmp",
+ "-i", "C:\\LibLAS\\Samples\\N1440375.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
+ "-o", "C:\\LibLAS\\Samples\\N1440375_idx.las"};
+ argc = 13;
+ */
+ /*-----------------build index in standalone file---------------------------
+ const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\N1440375.tmp",
+ "-i", "C:\\LibLAS\\Samples\\N1440375.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
+ "-o", "C:\\LibLAS\\Samples\\N1440375_idx.ldx", "-s"};
+ argc = 14;
+ */
+ /*------------------filter with embedded index------------------------------
+ const char* arggv[] = {"foo",
+ "-i", "C:\\LibLAS\\Samples\\N1440375_idx.las", "-r"};
+ argc = 4;
+ */
+ /*-------------------filter from standalone file----------------------------
+ const char* arggv[] = {"foo", "-i", "C:\\LibLAS\\Samples\\N1440375.las",
+ "-n", "C:\\LibLAS\\Samples\\N1440375_idx.ldx", "-r"};
+ argc = 6;
+ */
+ /*-----------------build embedded index, filter with user bounds------------ */
+ const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\N1440375.tmp",
+ "-i", "C:\\LibLAS\\Samples\\N1440375.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
+ "-o", "C:\\LibLAS\\Samples\\N1440375_idx.las",
+ "-x", "1443000.00", "1444000.00", "-y", "376000.02", "379000.00", "-z", "850.00", "950.00"};
+ argc = 22;
- /*------------filter with embedded index using iterator---------------------
- const char* arggv[] = {"foo",
- "-i", "C:\\LibLAS\\Samples\\N1440375_idx.las", "-r", "-it", "20000"};
- argc = 6;
- */
- /*---------------------Serpent Mound Model LAS Data-----------------------*/
- /*----------------------------build index-----------------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data.tmp",
- "-i", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data_idx.las"};
- argc = 13;
- */
- /*------------------filter with embedded index------------------------------
- const char* arggv[] = {"foo",
- "-i", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data_idx.las", "-r"};
- argc = 4;
- */
- /*---------------------Mount St Helens Oct 4 2004-------------------------*/
- /*----------------------------build index-----------------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004.tmp",
- "-i", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004_idx.las", "-b", "100"};
- argc = 15;
- */
- /*------------------filter with embedded index------------------------------
- const char* arggv[] = {"foo",
- "-i", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004_idx.las", "-r"};
- argc = 4;
- */
- /*----------------------------Lincoln-------------------------------------*/
- /*--------------------------build index-------------------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\Lincoln.tmp",
- "-i", "C:\\LibLAS\\Samples\\Lincoln.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\Lincoln_idx.las"};
- argc = 13;
- */
- /*------------------filter with embedded index------------------------------
- const char* arggv[] = {"foo",
- "-i", "C:\\LibLAS\\Samples\\Lincoln_idx.las", "-r"};
- argc = 4;
- */
- /*------------------------------flatDataset-------------------------------*/
- /*------------------------------build index---------------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\flatDataset.tmp",
- "-i", "C:\\LibLAS\\Samples\\flatDataset.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\flatDataset_idx.las"};
- argc = 13;
- */
- /*------------------filter with embedded index------------------------------
- const char* arggv[] = {"foo",
- "-i", "C:\\LibLAS\\Samples\\flatDataset_idx.las", "-r"};
- argc = 4;
- */
- /*------------filter with embedded index using iterator---------------------
- const char* arggv[] = {"foo",
- "-i", "C:\\LibLAS\\Samples\\flatDataset_idx.las", "-r", "-it", "25"};
- argc = 6;
- */
- /*---------------------------billion_points-------------------------------*/
- /*-----------------build index in standalone file---------------------------
- const char* arggv[] = {"foo", "-t", "K:\\FME\\billion_points.tmp",
- "-i", "D:\\Zips\\FME\\billion_points.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "K:\\FME\\billion_points_idx.ldx", "-s", "-it", "5000000"};
- argc = 16;
- */
- /*-------------------filter from standalone file using iterator-------------
- const char* arggv[] = {"foo", "-i", "D:\\Zips\\FME\\billion_points.las",
- "-n", "K:\\FME\\billion_points_idx.ldx", "-r", "-it", "5000000"};
- argc = 8;
- */
- /*---------------------------400Pts---------------------------------------*/
- /*-----------------build index in standalone file---------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\400Pts.tmp",
- "-i", "C:\\LibLAS\\Samples\\400Pts.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\400Pts_idx.ldx", "-s", "-it", "25"};
- argc = 16;
- */
- /*-------------------filter from standalone file using iterator-------------
- const char* arggv[] = {"foo", "-i", "C:\\LibLAS\\Samples\\400Pts.las",
- "-n", "C:\\LibLAS\\Samples\\400Pts_idx.ldx", "-r", "-it", "25"};
- argc = 8;
- */
- /*---------------------------355by355-------------------------------------*/
- /*-----------------build index in standalone file---------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\355by355.tmp",
- "-i", "C:\\LibLAS\\Samples\\355by355.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\355by355_idx.ldx", "-s", "-it", "100"};
- argc = 16;
- */
- /*-------------------filter from standalone file using iterator-------------
- const char* arggv[] = {"foo", "-i", "C:\\LibLAS\\Samples\\355by355.las",
- "-n", "C:\\LibLAS\\Samples\\355by355_idx.ldx", "-r", "-it", "25"};
- argc = 8;
- */
- /*---------------------------545by545-------------------------------------*/
- /*-----------------build index in standalone file---------------------------
- const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\545by545.tmp",
- "-i", "C:\\LibLAS\\Samples\\545by545.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
- "-o", "C:\\LibLAS\\Samples\\545by545_idx.ldx", "-s", "-it", "100"};
- argc = 16;
- */
- /*-------------------filter from standalone file using iterator-------------
- const char* arggv[] = {"foo", "-i", "C:\\LibLAS\\Samples\\545by545.las",
- "-n", "C:\\LibLAS\\Samples\\545by545_idx.ldx", "-r", "-it", "25"};
- argc = 8;
- */
-
- for (int i = 1; i < argc; i++)
+ /*------------filter with embedded index using iterator---------------------
+ const char* arggv[] = {"foo",
+ "-i", "C:\\LibLAS\\Samples\\N1440375_idx.las", "-r", "-it", "20000"};
+ argc = 6;
+ */
+ /*---------------------Serpent Mound Model LAS Data-----------------------*/
+ /*----------------------------build index-----------------------------------
+ const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data.tmp",
+ "-i", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
+ "-o", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data_idx.las"};
+ argc = 13;
+ */
+ /*------------------filter with embedded index------------------------------
+ const char* arggv[] = {"foo",
+ "-i", "C:\\LibLAS\\Samples\\Serpent Mound Model LAS Data_idx.las", "-r"};
+ argc = 4;
+ */
+ /*---------------------Mount St Helens Oct 4 2004-------------------------*/
+ /*----------------------------build index-----------------------------------
+ const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004.tmp",
+ "-i", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
+ "-o", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004_idx.las", "-b", "100"};
+ argc = 15;
+ */
+ /*------------------filter with embedded index------------------------------
+ const char* arggv[] = {"foo",
+ "-i", "C:\\LibLAS\\Samples\\Mount St Helens Oct 4 2004_idx.las", "-r"};
+ argc = 4;
+ */
+ /*----------------------------Lincoln-------------------------------------*/
+ /*--------------------------build index-------------------------------------
+ const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\Lincoln.tmp",
+ "-i", "C:\\LibLAS\\Samples\\Lincoln.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
+ "-o", "C:\\LibLAS\\Samples\\Lincoln_idx.las"};
+ argc = 13;
+ */
+ /*------------------filter with embedded index------------------------------
+ const char* arggv[] = {"foo",
+ "-i", "C:\\LibLAS\\Samples\\Lincoln_idx.las", "-r"};
+ argc = 4;
+ */
+ /*------------------------------flatDataset-------------------------------*/
+ /*------------------------------build index---------------------------------
+ const char* arggv[] = {"foo", "-t", "C:\\LibLAS\\Samples\\flatDataset.tmp",
+ "-i", "C:\\LibLAS\\Samples\\flatDataset.las", "-a", SAMPLE_AUTHOR, "-c", SAMPLE_COMMENT, "-d", SAMPLE_DATE,
+ "-o", "C:\\LibLAS\\Samples\\flatDataset_idx.las"};
More information about the Liblas-commits
mailing list