Changeset 834

Show
Ignore:
Timestamp:
08/17/08 03:01:31 (4 months ago)
Author:
hobu
Message:

better docs for lasinfo

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/apps/lasinfo.c

    r833 r834  
    4141 
    4242    fprintf(stderr,"Checking point information:\n"); 
    43     fprintf(stderr,"  lasinfo --check lidar.las\n"); 
    44     fprintf(stderr,"\n"); 
    45  
    46     fprintf(stderr,"Reading from stdin:\n"); 
    47     fprintf(stderr,"  lasinfo --stdin -c < lidar.las\n"); 
     43    fprintf(stderr,"  lasinfo --input lidar.las --check\n"); 
     44    fprintf(stderr,"\n"); 
     45 
     46    fprintf(stderr,"Print header info and point summary and redirect output to a file:\n"); 
     47    fprintf(stderr,"  lasinfo --check --input lidar.las 2> output.txt\n"); 
     48    fprintf(stderr,"\n"); 
     49     
     50    fprintf(stderr,"Read from stdin, scan the points, and skip printing VLR info:\n"); 
     51    fprintf(stderr,"  lasinfo --stdin --check --skip_vlr < lidar.las\n"); 
    4852    fprintf(stderr,"\n"); 
    4953 
    5054    fprintf(stderr,"Repairing header info to reflect point data:\n"); 
    5155    fprintf(stderr,"  lasinfo -i lidar.las --repair\n"); 
    52     fprintf(stderr,"  lasinfo -i lidar.las --repair_bounding_box\n"); 
    53     fprintf(stderr,"\n"); 
    54  
    55     fprintf(stderr,"Altering header inf:\n"); 
     56    fprintf(stderr,"\n"); 
     57 
     58    fprintf(stderr,"Altering header info:\n"); 
    5659    fprintf(stderr, "  lasinfo -i lidar.las --system_identifier \"hello world!\" " 
    5760                    "--generating_software \"this is a test (-:\"  --file_creation 8 2007\n"); 
  • trunk/doc/lasinfo.txt

    r813 r834  
    11**************************************************************** 
    2   lasinfo: converts from binary LAS to a standard ASCII format 
     2  lasinfo: a utility for inspecting LAS files 
    33**************************************************************** 
    44 
    55:Author: Martin Isenburg 
    66:Contact: isenburg@cs.unc.edu 
     7:Author: Howard Butler 
     8:Contact: hobu.inc@gmail.com 
    79:Revision: $Revision$ 
    810:Date: $Date$ 
     
    1416    :backlinks: top 
    1517 
    16 lasinfo prints the header contents and a short summary of the points. When  
    17 there are differences between header info and point content they are reported  
    18 as a warning. 
     18Description 
     19----------- 
    1920 
    20 lasinfo can also be used to modify entries in the header as described below. 
     21`lasinfo` prints the header contents by default, and with a switch, can  
     22be used to print a short summary of the points. When in summary mode (using  
     23the --check switch), differences between header info and point content are  
     24reported as warnings.  `lasinfo` prints its information to stderr, and you  
     25can use pipes to redirect the output of `lasinfo` as necessary.  `lasinfo`  
     26supports reading from stdin, but it does not attempt to read from stdin if the  
     27--stdin switch is not used.  `lasinfo` can also be used to modify a few header 
     28entries in-place as described in the examples. 
     29 
     30`lasinfo` is a port of Martin Isenburg's `lasinfo` utility from `LASTools`_  
     31to the libLAS library.  For the most part, it is unchanged from Martin's  
     32utility except for a few differences: 
     33 
     34* It does *not* scan the points by default and instead you must use the --check  
     35  switch to have them scanned. 
     36 
     37* It *does* print the Variable Length Records (VLRs) by default. 
     38 
     39* Slightly different (and tidier) output format. 
     40 
     41* GNU-style arguments and switches (although most of the switches used by  
     42  Martin's utilities should continue to work). 
     43 
    2144 
    2245Usage 
    2346----- 
    2447 
    25 Simple info 
    26 ~~~~~~~~~~~ 
     48Simple header inspection 
     49~~~~~~~~~~~~~~~~~~~~~~~~ 
    2750 
    2851:: 
     
    3053  $ lasinfo lidar.las 
    3154  $ lasinfo --input lidar.las 
    32  
    33 reports header information. 
    3455 
    3556 
     
    4263 
    4364 
    44 Report Variable Header 
    45 ~~~~~~~~~~~~~~~~~~~~~~ 
     65Variable Header Records 
     66~~~~~~~~~~~~~~~~~~~~~~~ 
    4667 
    4768:: 
    4869   
    49   $ lasinfo --input lidar.las -variable 
     70  $ lasinfo --input lidar.las -skip_vlr 
    5071 
    51 also reports the contents of any variable headers there might be. 
     72will skip the printing of Variable Record Headers (VLRs) for the file. 
    5273 
    53 Read through just the header 
    54 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     74Check the points for header inconsistencies 
     75~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    5576 
    5677:: 
    5778 
    58   $ lasinfo --input lidar.las --nocheck 
     79  $ lasinfo --input lidar.las --check 
    5980 
    60 omits reading over all the points. Only reports header information. 
     81scans over all the points and reports any differences with the header.   
     82Descriptive information like minimums and maximums of various variables  
     83(time, x, y, z, etc) and some basic histograms are also reported. 
    6184 
    62 Attempt to repair missing header entries 
    63 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     85Repair missing or inconsistent header information 
     86~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    6487 
    6588:: 
     
    6790  $ lasinfo --input lidar.las --repair 
    6891 
    69 if there are missing or wrong entries in the header they are corrected. 
     92will add missing or repair inconsistent header entries with respect to the points.   
     93Items that are repaired with --repair include the bounding box header entries  
     94and the point records by return count.  Future versions of the software may  
     95include other header repair types if they can be done in such a way as to not  
     96require rewriting of the file. 
    7097 
    7198Update bounding box of LAS file 
     
    83110:: 
    84111   
    85   $ lasinfo -i lidar.las -file_creation 8 2007 
     112  $ lasinfo -i lidar.las --file_creation 8 2007 
    86113 
    87 sets the file creation day/year in the header to 8/2007. 
     114sets the file creation day/year in the header to 8/2007.  With accordance to the  
     115ASPRS LAS specification, this literally means the 8th day of 2007.   
    88116 
    89117Set system identifier 
     
    118146http://www.appliedimagery.com/Serpent%20Mound%20Model%20LAS%20Data.las 
    119147 
     148.. _`LAStools`: http://www.cs.unc.edu/~isenburg/lastools/