[Liblas-commits] lastools: Added unmodified LAStools from February 2010.

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Dec 14 11:24:21 EST 2010


changeset c8345daf8bb9 in /Volumes/Data/www/liblas.org/lastools
details: http://hg.liblas.orglastools?cmd=changeset;node=c8345daf8bb9
summary: Added unmodified LAStools from February 2010.

diffstat:

 Makefile                                            |    15 +
 README.txt                                          |    48 +
 bin/GLUT32.DLL                                      |     0 
 bin/batch_files/batch_change_version.bat            |    29 +
 bin/batch_files/batch_change_version_README.txt     |   114 +
 bin/batch_files/batch_repair_header.bat             |    22 +
 bin/batch_files/batch_repair_header_README.txt      |   112 +
 bin/batch_files/batch_repair_header_date.bat        |    22 +
 bin/batch_files/batch_repair_header_date_README.txt |   112 +
 bin/batch_files/data/flight/flight001.las           |     0 
 bin/batch_files/data/flight/flight002.las           |     0 
 bin/batch_files/data/flight/flight003.las           |     0 
 bin/batch_files/data/flight/flight004.las           |     0 
 bin/batch_files/data/path/path001.las               |     0 
 bin/batch_files/data/path/path002.las               |     0 
 bin/batch_files/data/path/path003.las               |     0 
 bin/batch_files/data/path/path004.las               |     0 
 bin/batch_files/data/test001.las                    |     0 
 bin/batch_files/data/test002.las                    |     0 
 bin/gzip.exe                                        |     0 
 bin/las2dem.exe                                     |     0 
 bin/las2dem_README.txt                              |    96 +
 bin/las2iso.exe                                     |     0 
 bin/las2iso_README.txt                              |    86 +
 bin/las2las.exe                                     |     0 
 bin/las2las_README.txt                              |   123 +
 bin/las2shp.exe                                     |     0 
 bin/las2shp_README.txt                              |    34 +
 bin/las2tin.exe                                     |     0 
 bin/las2tin_README.txt                              |    50 +
 bin/las2txt.exe                                     |     0 
 bin/las2txt_README.txt                              |    80 +
 bin/lasboundary.exe                                 |     0 
 bin/lasboundary_README.txt                          |    43 +
 bin/lasdiff.exe                                     |     0 
 bin/lasdiff_README.txt                              |    18 +
 bin/lasinfo.exe                                     |     0 
 bin/lasinfo_README.txt                              |    79 +
 bin/lasmerge.exe                                    |     0 
 bin/lasmerge_README.txt                             |    60 +
 bin/lasthin.exe                                     |     0 
 bin/lasthin_README.txt                              |    47 +
 bin/lasview.exe                                     |     0 
 bin/lasview_README.txt                              |    55 +
 bin/laszip.exe                                      |     0 
 bin/laszip_README.txt                               |    66 +
 bin/shp2las.exe                                     |     0 
 bin/shp2las_README.txt                              |    27 +
 bin/txt2las.exe                                     |     0 
 bin/txt2las_README.txt                              |    71 +
 data/TO_core_last_zoom.las                          |     0 
 data/test.las                                       |     0 
 inc/lasdefinitions.h                                |   238 +
 inc/laspointreader.h                                |    41 +
 inc/laspointreader0compressed.h                     |    68 +
 inc/laspointreader0compressedarithmetic.h           |    69 +
 inc/laspointreader0raw.h                            |    49 +
 inc/laspointreader1compressed.h                     |    73 +
 inc/laspointreader1compressedarithmetic.h           |    74 +
 inc/laspointreader1raw.h                            |    50 +
 inc/laspointreader2compressed.h                     |    71 +
 inc/laspointreader2compressedarithmetic.h           |    72 +
 inc/laspointreader2raw.h                            |    49 +
 inc/laspointreader3compressed.h                     |    76 +
 inc/laspointreader3compressedarithmetic.h           |    77 +
 inc/laspointreader3raw.h                            |    50 +
 inc/laspointwriter.h                                |    41 +
 inc/laspointwriter0compressed.h                     |    68 +
 inc/laspointwriter0compressedarithmetic.h           |    69 +
 inc/laspointwriter0raw.h                            |    50 +
 inc/laspointwriter1compressed.h                     |    73 +
 inc/laspointwriter1compressedarithmetic.h           |    74 +
 inc/laspointwriter1raw.h                            |    50 +
 inc/laspointwriter2compressed.h                     |    71 +
 inc/laspointwriter2compressedarithmetic.h           |    72 +
 inc/laspointwriter2raw.h                            |    50 +
 inc/laspointwriter3compressed.h                     |    76 +
 inc/laspointwriter3compressedarithmetic.h           |    77 +
 inc/laspointwriter3raw.h                            |    50 +
 inc/lasreader.h                                     |    75 +
 inc/laswriter.h                                     |    61 +
 las.dsw                                             |   197 +
 las.ncb                                             |     0 
 las.opt                                             |     0 
 lib/LASlib.lib                                      |     0 
 lib/liblas.a                                        |     0 
 libD/LASlib.lib                                     |     0 
 src/Makefile                                        |    36 +
 src/lasreader.cpp                                   |   701 +++
 src/laswriter.cpp                                   |   620 ++
 stl/algo.h                                          |   114 +
 stl/algobase.h                                      |    71 +
 stl/algorithm                                       |    40 +
 stl/alloc.h                                         |    46 +
 stl/bitset                                          |  1074 ++++
 stl/bvector.h                                       |    52 +
 stl/char_traits.h                                   |   152 +
 stl/concept_checks.h                                |   811 +++
 stl/container_concepts.h                            |   247 +
 stl/defalloc.h                                      |    87 +
 stl/deque                                           |    41 +
 stl/deque.h                                         |    43 +
 stl/function.h                                      |   118 +
 stl/functional                                      |    26 +
 stl/hash_map                                        |    40 +
 stl/hash_map.h                                      |    49 +
 stl/hash_set                                        |    40 +
 stl/hash_set.h                                      |    44 +
 stl/hashtable.h                                     |    48 +
 stl/heap.h                                          |    46 +
 stl/iterator                                        |    47 +
 stl/iterator.h                                      |   113 +
 stl/limits                                          |   537 ++
 stl/list                                            |    40 +
 stl/list.h                                          |    42 +
 stl/map                                             |    40 +
 stl/map.h                                           |    46 +
 stl/memory                                          |   134 +
 stl/multimap.h                                      |    46 +
 stl/multiset.h                                      |    46 +
 stl/numeric                                         |    49 +
 stl/pair.h                                          |    51 +
 stl/pthread_alloc                                   |   495 ++
 stl/pthread_alloc.h                                 |    31 +
 stl/queue                                           |    45 +
 stl/rope                                            |    32 +
 stl/rope.h                                          |    34 +
 stl/ropeimpl.h                                      |  1587 +++++++
 stl/sequence_concepts.h                             |   204 +
 stl/set                                             |    40 +
 stl/set.h                                           |    46 +
 stl/slist                                           |    28 +
 stl/slist.h                                         |    30 +
 stl/stack                                           |    41 +
 stl/stack.h                                         |    46 +
 stl/stdexcept                                       |    96 +
 stl/stl_algo.h                                      |  3297 +++++++++++++++
 stl/stl_algobase.h                                  |   696 +++
 stl/stl_alloc.h                                     |   897 ++++
 stl/stl_bvector.h                                   |   896 ++++
 stl/stl_config.h                                    |   576 ++
 stl/stl_construct.h                                 |   124 +
 stl/stl_ctraits_fns.h                               |    69 +
 stl/stl_deque.h                                     |  1652 +++++++
 stl/stl_exception.h                                 |    57 +
 stl/stl_function.h                                  |   725 +++
 stl/stl_hash_fun.h                                  |    93 +
 stl/stl_hash_map.h                                  |   532 ++
 stl/stl_hash_set.h                                  |   514 ++
 stl/stl_hashtable.h                                 |  1054 ++++
 stl/stl_heap.h                                      |   297 +
 stl/stl_iterator.h                                  |   964 ++++
 stl/stl_iterator_base.h                             |   367 +
 stl/stl_list.h                                      |   885 ++++
 stl/stl_map.h                                       |   295 +
 stl/stl_multimap.h                                  |   282 +
 stl/stl_multiset.h                                  |   274 +
 stl/stl_numeric.h                                   |   255 +
 stl/stl_pair.h                                      |   101 +
 stl/stl_queue.h                                     |   243 +
 stl/stl_range_errors.h                              |    71 +
 stl/stl_raw_storage_iter.h                          |    81 +
 stl/stl_relops.h                                    |    62 +
 stl/stl_rope.h                                      |  2714 ++++++++++++
 stl/stl_set.h                                       |   268 +
 stl/stl_slist.h                                     |  1048 ++++
 stl/stl_stack.h                                     |   143 +
 stl/stl_string_fwd.h                                |    40 +
 stl/stl_tempbuf.h                                   |   162 +
 stl/stl_threads.h                                   |   374 +
 stl/stl_tree.h                                      |  1366 ++++++
 stl/stl_uninitialized.h                             |   279 +
 stl/stl_vector.h                                    |   869 +++
 stl/string                                          |  2413 ++++++++++
 stl/tempbuf.h                                       |    61 +
 stl/tree.h                                          |    46 +
 stl/type_traits.h                                   |   373 +
 stl/utility                                         |    38 +
 stl/valarray                                        |  1773 ++++++++
 stl/vector                                          |    42 +
 stl/vector.h                                        |    43 +
 tools/las2dem.dsp                                   |   186 +
 tools/las2dem.plg                                   |   614 ++
 tools/las2iso.dsp                                   |   138 +
 tools/las2iso.plg                                   |    43 +
 tools/las2las.dsp                                   |   134 +
 tools/las2las.plg                                   |    41 +
 tools/las2shp.dsp                                   |   126 +
 tools/las2shp.plg                                   |    43 +
 tools/las2tin.dsp                                   |   138 +
 tools/las2tin.plg                                   |    49 +
 tools/las2txt.dsp                                   |   126 +
 tools/las2txt.plg                                   |    43 +
 tools/lasboundary.dsp                               |   138 +
 tools/lasboundary.plg                               |   614 ++
 tools/lasdiff.dsp                                   |   126 +
 tools/lasdiff.plg                                   |    43 +
 tools/lasinfo.dsp                                   |   126 +
 tools/lasinfo.plg                                   |    43 +
 tools/lasmerge.dsp                                  |   134 +
 tools/lasmerge.plg                                  |    43 +
 tools/lasthin.dsp                                   |   134 +
 tools/lasthin.plg                                   |    43 +
 tools/lasview.dsp                                   |   138 +
 tools/lasview.plg                                   |    49 +
 tools/laszip.dsp                                    |   134 +
 tools/laszip.plg                                    |   614 ++
 tools/shp2las.dsp                                   |   126 +
 tools/shp2las.plg                                   |    43 +
 tools/src/Makefile                                  |    95 +
 tools/src/fopengzipped.cpp                          |    91 +
 tools/src/geotiff_api/epsg_datum.inc                |   174 +
 tools/src/geotiff_api/epsg_ellipse.inc              |    48 +
 tools/src/geotiff_api/epsg_gcs.inc                  |   193 +
 tools/src/geotiff_api/epsg_pcs.inc                  |  1012 ++++
 tools/src/geotiff_api/epsg_pm.inc                   |    22 +
 tools/src/geotiff_api/epsg_proj.inc                 |   443 ++
 tools/src/geotiff_api/epsg_units.inc                |    35 +
 tools/src/geotiff_api/epsg_vertcs.inc               |    46 +
 tools/src/geotiff_api/geo_config.h                  |    24 +
 tools/src/geotiff_api/geo_ctrans.inc                |    91 +
 tools/src/geotiff_api/geokeys.h                     |    54 +
 tools/src/geotiff_api/geokeys.inc                   |    76 +
 tools/src/geotiff_api/geotiff.h                     |   120 +
 tools/src/geotiff_api/geotiff.lib                   |     0 
 tools/src/geotiff_api/geotiffio.h                   |    16 +
 tools/src/geotiff_api/geovalues.h                   |   120 +
 tools/src/jpg_api/jconfig.h                         |    45 +
 tools/src/jpg_api/jerror.h                          |   291 +
 tools/src/jpg_api/jmorecfg.h                        |   371 +
 tools/src/jpg_api/jpeglib.h                         |  1096 ++++
 tools/src/jpg_api/libjpeg.lib                       |     0 
 tools/src/las2dem.cpp                               |  1199 +++++
 tools/src/las2iso.cpp                               |  2283 ++++++++++
 tools/src/las2las.cpp                               |   781 +++
 tools/src/las2shp.cpp                               |   629 ++
 tools/src/las2tin.cpp                               |   713 +++
 tools/src/las2txt.cpp                               |   543 ++
 tools/src/lasboundary.cpp                           |   920 ++++
 tools/src/lasdiff.cpp                               |   573 ++
 tools/src/lasinfo.cpp                               |  4005 ++++++++++++++++++
 tools/src/lasmerge.cpp                              |   473 ++
 tools/src/lasthin.cpp                               |   420 +
 tools/src/lasview.cpp                               |  1687 +++++++
 tools/src/laszip.cpp                                |   446 ++
 tools/src/png_api/libpng.lib                        |     0 
 tools/src/png_api/libpngd.lib                       |     0 
 tools/src/png_api/png.h                             |  3523 ++++++++++++++++
 tools/src/png_api/pngconf.h                         |  1483 ++++++
 tools/src/predicates.cpp                            |  4171 +++++++++++++++++++
 tools/src/shp2las.cpp                               |   483 ++
 tools/src/sr_api/Makefile                           |    35 +
 tools/src/sr_api/geoprojectionconverter.cpp         |  3557 ++++++++++++++++
 tools/src/sr_api/geoprojectionconverter.h           |   192 +
 tools/src/sr_api/srbuffer.h                         |    59 +
 tools/src/sr_api/srbufferinmemory.cpp               |   179 +
 tools/src/sr_api/srbufferinmemory.h                 |    57 +
 tools/src/sr_api/srbufferrowbands.cpp               |   156 +
 tools/src/sr_api/srbufferrowbands.h                 |    62 +
 tools/src/sr_api/srbufferrows.cpp                   |   917 ++++
 tools/src/sr_api/srbufferrows.h                     |    77 +
 tools/src/sr_api/srbuffersimple.cpp                 |   951 ++++
 tools/src/sr_api/srbuffersimple.h                   |    70 +
 tools/src/sr_api/srbuffertiles.cpp                  |   722 +++
 tools/src/sr_api/srbuffertiles.h                    |    94 +
 tools/src/sr_api/srreader.h                         |    74 +
 tools/src/sr_api/srreader_tif.cpp                   |   239 +
 tools/src/sr_api/srreader_tif.h                     |    64 +
 tools/src/sr_api/srwriteopener.cpp                  |   260 +
 tools/src/sr_api/srwriteopener.h                    |    66 +
 tools/src/sr_api/srwriter.h                         |    87 +
 tools/src/sr_api/srwriter_bil.cpp                   |   198 +
 tools/src/sr_api/srwriter_bil.h                     |    68 +
 tools/src/sr_api/srwriter_bil_fseek.cpp             |   386 +
 tools/src/sr_api/srwriter_bil_fseek.h               |    90 +
 tools/src/sr_api/srwriter_jpg.cpp                   |   469 ++
 tools/src/sr_api/srwriter_jpg.h                     |    69 +
 tools/src/sr_api/srwriter_png.cpp                   |   376 +
 tools/src/sr_api/srwriter_png.h                     |    67 +
 tools/src/sr_api/srwriter_tif.cpp                   |   387 +
 tools/src/sr_api/srwriter_tif.h                     |    70 +
 tools/src/sr_api/srwritetiled.cpp                   |   317 +
 tools/src/sr_api/srwritetiled.h                     |    76 +
 tools/src/sr_viewer.cpp                             |   934 ++++
 tools/src/tiff_api/tiff.h                           |   647 ++
 tools/src/tiff_api/tiff.lib                         |     0 
 tools/src/tiff_api/tiffconf.h                       |   101 +
 tools/src/tiff_api/tiffio.h                         |   515 ++
 tools/src/tiff_api/tiffvers.h                       |     9 +
 tools/src/tiff_api/xtiffio.h                        |    84 +
 tools/src/triangulate.cpp                           |   947 ++++
 tools/src/triangulate.h                             |    53 +
 tools/src/txt2las.cpp                               |  1057 ++++
 tools/src/zlib_api/zconf.h                          |   332 +
 tools/src/zlib_api/zlib.h                           |  1357 ++++++
 tools/src/zlib_api/zlib.lib                         |     0 
 tools/src/zlib_api/zlibd.lib                        |     0 
 tools/txt2las.dsp                                   |   126 +
 tools/txt2las.plg                                   |    43 +
 299 files changed, 89243 insertions(+), 0 deletions(-)

diffs (truncated from 90359 to 300 lines):

diff -r 000000000000 -r c8345daf8bb9 Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Tue Dec 14 11:07:26 2010 -0500
@@ -0,0 +1,15 @@
+all:
+	cd src && make
+	cd tools/src/sr_api && make
+	cd tools/src && make
+
+clean:
+	cd src && make clean
+	cd tools/src/sr_api && make clean
+	cd tools/src && make clean
+
+clobber:
+	cd src && make clobber
+	cd tools/src/sr_api && make clobber
+	cd tools/src && make clobber
+	cd bin && rm -rf lasinfo laszip las2txt txt2las las2las lasdiff lasmerge lasthin las2shp shp2las las2iso las2tin las2dem lasboundary lasview
diff -r 000000000000 -r c8345daf8bb9 README.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.txt	Tue Dec 14 11:07:26 2010 -0500
@@ -0,0 +1,48 @@
+LAStools - converting, viewing, and compressing LIDAR data in LAS format
+
+latest update: http://www.cs.unc.edu/~isenburg/lastools/
+
+* txt2las.exe converts LIDAR data from ASCII text to binary LAS format
+* las2txt.exe turns LAS into human-readable and easy-to-parse ASCII text
+* lasinfo.exe prints out a quick overview of the contents of a LAS file
+* las2shp.exe turns binary LAS into ESRI's Shapefile format
+* shp2las.exe turns an ESRI's Shapefile into binary LAS
+* lasmerge.exe can merge several LAS files into one
+* las2las.exe extracts only last returns, clips, subsamples, etc ...
+* lasthin.exe implements a simple point thinning algorithm
+* las2tin.exe triangulates the points of a LAS file into a TIN
+* las2dem.exe rasterizes them into a DEM
+* las2iso.exe extracts, optionally simplified, elevation contours
+* lasview.exe visualizes the contents of a LAS file.
+
+For Windows all binaries are included. They can also be compiled from
+the sources. You can find the MSVC6.0 project files there as well.
+
+For Linux all Makefiles and sources are included. Simply go into the
+main directory and run 'make'.
+
+unzip lastools.zip
+cd lastools/
+make
+
+The (pre-)compiled binary executables are (will be) in the ./bin directory.
+
+--------------------------------------------
+
+LASreader and LASwriter
+
+This is the API for reading and writing LAS files from and to the
+standard format (*.las) as defined by (www.lasformat.org) as well
+from and to our compressed format (*.laz).
+
+We include the sources (./src) for the LASreader and LASwriter
+classes. However, we do not (yet) include the source for the
+compressor. For the moment the compressor is only accessible
+through function calls to the Windows libs.
+
+---------------------------------------------
+
+If you find this code useful or if you crash the code or if you have
+suggestions, or if you want to license these tools, please email me.
+
+Martin Isenburg (isenburg at cs.unc.edu), January 2010
diff -r 000000000000 -r c8345daf8bb9 bin/GLUT32.DLL
Binary file bin/GLUT32.DLL has changed
diff -r 000000000000 -r c8345daf8bb9 bin/batch_files/batch_change_version.bat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/batch_files/batch_change_version.bat	Tue Dec 14 11:07:26 2010 -0500
@@ -0,0 +1,29 @@
+ECHO OFF
+ECHO usage:
+ECHO   run "batch_change_version.bat" and then enter the two
+ECHO   arguments when prompted or provide the two arguments
+ECHO   in the command line. here are some example runs:
+ECHO   C:\bin) batch_change_version.bat data\*.las 1.1
+ECHO   C:\bin) batch_change_version.bat data\test001.las 1.2
+ECHO   C:\bin) batch_change_version.bat data\path\*.las 1.0
+ECHO   C:\bin) batch_change_version.bat data\flight\flight00*.las 1.0
+IF "%1%" == "" GOTO GET_ALL
+IF "%2%" == "" GOTO GET_VERSION
+IF "%3%" == "" GOTO ACTION
+:GET_ALL
+SET /P F=input file (or wildcard):
+SET /P V=version:
+FOR %%D in (%F%) DO START /wait lasinfo -quiet -version %V% -i %%D
+FOR %%D in (%F%) DO ECHO lasinfo -quiet -version %V% -i %%D
+GOTO END
+:GET_VERSION
+SET /P V=version:
+FOR %%D in (%1) DO START /wait lasinfo -quiet -version %V% -i %%D
+FOR %%D in (%1) DO ECHO lasinfo -quiet -version %V% -i %%D
+GOTO END
+:ACTION
+ECHO OFF
+FOR %%D in (%1) DO START /wait lasinfo -quiet -version %2 -i %%D
+FOR %%D in (%1) DO ECHO lasinfo -quiet -version %2 -i %%D
+:END
+SET /P F=done. press ENTER
diff -r 000000000000 -r c8345daf8bb9 bin/batch_files/batch_change_version_README.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/batch_files/batch_change_version_README.txt	Tue Dec 14 11:07:26 2010 -0500
@@ -0,0 +1,114 @@
+****************************************************************
+
+  batch_change_version.bat
+
+      run this batch script either by double click or in the
+      command line to change the version of the LAS files. this
+      tool allows you to change it to *any* version number 
+      (e.g. you can even change the file to version 2.11). you
+      may make your file unreadable if you change it to the
+      wrong version.
+
+                       questions or bugs: isenburg at cs.unc.edu
+
+      created on February 2nd, 2009 for airborne1.com
+              (c) copyright martin isenburg
+  
+****************************************************************
+
+example usage:
+
+>> batch_change_version.bat data\test000.las 1.1
+
+changes the version of file 'data\test000.las' to 1.1
+
+>> batch_change_version.bat data\*.las 1.5
+
+changes the version of all '*.las' files in directory 'data\' to 1.5
+
+>> batch_change_version.bat data\flight\flight*.las 1.1
+
+changes the version of all 'flight*.las' files in directory 'data\flight\' to 1.1
+
+>> batch_change_version.bat 
+>> input file (or wildcard): data\*.las
+>> version: 1.1
+
+changes the version of all '*.las' files in directory 'data\' to 1.1
+
+
+---------------------------------------------------------------
+
+
+under the hood the batch script uses the lasinfo.exe. you can
+do the following with this tool:
+
+****************************************************************
+
+  LASinfo : simply prints the header contents and a short
+            summary of the points. when there are differences
+            between header info and point content they are
+            reported as a warning.
+
+            can also be used to modify entries in the header
+            as described below
+
+****************************************************************
+
+example usage:
+
+>> lasinfo lidar.las
+
+reports all information 
+
+>> lasinfo -o lidar_info.txt -i lidar.las
+
+reports all information to a text file called lidar_info.txt
+
+>> lasinfo -i lidar.las -no_variable
+
+avoids reporting the contents of the variable length records
+
+>> lasinfo -i lidar.las -nocheck
+
+omits reading over all the points. only reports header information
+
+>> lasinfo -i lidar.las -repair
+
+if there are missing or wrong entries in the header they are corrected
+
+>> lasinfo -i lidar.las -repair_boundingbox
+
+reads all points, computes their bounding box, and updates it in the header
+
+>> lasinfo -i lidar.las -file_creation 8 2007
+
+sets the file creation day/year in the header to 8/2007
+
+>> lasinfo -i lidar.las -system_identifier "hello world!"
+
+copies the first 31 characters of the string into the system_identifier field of the header 
+
+>> lasinfo -i lidar.las -version 1.1 -quiet
+
+changes the version of the lidar file to be 1.1 while suppressing all control output
+
+>> lasinfo -i lidar.las -generating_software "this is a test (-:"
+
+copies the first 31 characters of the string into the generating_software field of the header 
+
+for more info:
+
+C:\lastools\bin>lasinfo -h
+usage:
+lasinfo lidar.las
+lasinfo -no_variable lidar.las
+lasinfo -no_variable -nocheck lidar.las
+lasinfo -i lidar.las -o lidar_info.txt
+lasinfo -i lidar.las -repair
+lasinfo -i lidar.las -repair_bounding_box -file_creation 8 2007
+lasinfo -i lidar.las -system_identifier "hello world!" -generating_software "this is a test (-:"
+
+----
+
+if you find bugs let me (isenburg at cs.unc.edu) know.
\ No newline at end of file
diff -r 000000000000 -r c8345daf8bb9 bin/batch_files/batch_repair_header.bat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/batch_files/batch_repair_header.bat	Tue Dec 14 11:07:26 2010 -0500
@@ -0,0 +1,22 @@
+ECHO OFF
+ECHO usage:
+ECHO   run "batch_repair_header.bat" and then enter the two
+ECHO   arguments when prompted or provide the two arguments
+ECHO   in the command line. here are some example runs:
+ECHO   C:\bin) batch_repair_header.bat data\*.las
+ECHO   C:\bin) batch_repair_header.bat data\test001.las
+ECHO   C:\bin) batch_repair_header.bat data\path\*.las
+ECHO   C:\bin) batch_repair_header.bat data\flight\flight00*.las
+IF "%1%" == "" GOTO GET_ALL
+IF "%2%" == "" GOTO ACTION
+:GET_ALL
+SET /P F=input file (or wildcard):
+FOR %%D in (%F%) DO START /wait lasinfo -quiet -repair -i %%D
+FOR %%D in (%F%) DO ECHO lasinfo -quiet -repair -i %%D
+GOTO END
+:ACTION
+ECHO OFF
+FOR %%D in (%1) DO START /wait lasinfo -quiet -repair -i %%D
+FOR %%D in (%1) DO ECHO lasinfo -quiet -repair -i %%D
+:END
+SET /P F=done. press ENTER
diff -r 000000000000 -r c8345daf8bb9 bin/batch_files/batch_repair_header_README.txt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/batch_files/batch_repair_header_README.txt	Tue Dec 14 11:07:26 2010 -0500
@@ -0,0 +1,112 @@
+****************************************************************
+
+  batch_repair_header.bat
+
+      run this batch script either by double click or in the
+      command line to change the version of the LAS files. this
+      tool will repair the header of all LAS files by setting
+      the bounding box to the actual extend and by correcting
+      other missing or wrong entries in the header.
+
+                       questions or bugs: isenburg at cs.unc.edu
+
+      created on March 13th, 2009 for geomatics-group.co.uk
+              (c) copyright martin isenburg
+  
+****************************************************************
+
+example usage:
+
+>> batch_repair_header.bat data\test000.las
+
+repairs the header of file 'data\test000.las'
+
+>> batch_repair_header.bat data\*.las
+
+repairs the header  of all '*.las' files in directory 'data\'
+
+>> batch_repair_header.bat data\flight\flight*.las
+
+repairs the header of all 'flight*.las' files in directory 'data\flight\'
+
+>> batch_repair_header.bat 
+>> input file (or wildcard): data\*.las
+
+repairs the header of all '*.las' files in directory 'data\'
+
+
+---------------------------------------------------------------
+
+
+under the hood the batch script uses the lasinfo.exe. you can
+do the following with this tool:
+
+****************************************************************
+


More information about the Liblas-commits mailing list