Changeset 835 for trunk/doc/las2las.txt

Show
Ignore:
Timestamp:
08/18/08 02:18:30 (4 months ago)
Author:
hobu
Message:

a solution (not great) for turning the reStructured text documents into man pages. Requires the developer have Python and docutils installed

Location:
trunk/doc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/doc

    • Property svn:ignore set to
      Makefile.in
      Makefile
      *.pyc
  • trunk/doc/las2las.txt

    r813 r835  
    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 las2las reads and writes LIDAR data in the LAS format while modifing its  
    17 contents. Examples are clipping of points to those that lie within a  
    18 certain region specified by a bounding box (-clip), eliminating points that  
    19 are the second return (-elim_return 2), that have a scan angle above some  
    20 threshold (-elim_scan_angle_above 5), or below some intensity  
    21 (-elim_intensity_below 15).  Another typical use may be to extract only  
    22 first (-first_only) returns or only last returns (-last_only). Extracting the 
    23 first  return is actually the same as eliminating all others  
    24 (e.g.-elim_return 2 -elim_return 3, ...). 
     18Description 
     19----------- 
    2520 
     21`las2las` reads and writes LiDAR data in the ASPRS LAS 1.0 and 1.1 formats while  
     22modifying its contents. While `lasinfo` can do a few simple operations like  
     23updating header information, more drastic changes, like removing points or  
     24altering values, will require `las2las`.  `las2las` is expected to be used for  
     25modifying single files at a time, and all `las2las` operations require multiple  
     26read passes through the points.   Some examples of operations `las2las` can be  
     27used for include: 
    2628 
    27 Example usage 
    28 ------------- 
     29* clipping of points to those that lie within a certain region specified  
     30  by a bounding box (--clip) 
     31* eliminating points that are the second return (--eliminate_return 2),  
     32* eliminating points that have a scan angle  
     33  above some threshold (--eliminate_scan_angle_above 5) 
     34* eliminating points that have an intensity below some  
     35  threshold (--eliminate_intensity_below 15) 
     36* extracting only first (--first-only) or last (--last-only) returns 
     37* changing the format from LAS 1.0 to 1.1 or vice versa 
     38* eliminating points of a given classification (--eliminate class 2) 
    2939 
    30 :: 
     40`las2las` is a port of Martin Isenburg's `las2las` utility from `LASTools`_  
     41to the libLAS library.  For the most part, it is unchanged from Martin's  
     42utility except for a few differences: 
     43 
     44* Text output describing the operation(s) is only provided when the --verbose  
     45  switch is provided. 
     46 
     47* Provides some point validation 
     48 
     49* Variable Length Records (VLRs) are carried forward by default. 
     50 
     51* Supports format (1.1->1.0 & 1.0->1.1) conversion. 
     52 
     53* GNU-style arguments and switches (although most of the switches used by  
     54  Martin's utilities should continue to work). 
    3155   
    32   $ las2las -i in.las -verbose 
    33  
    34 lists the value ranges of all the points (similar to lasinfo) 
     56Usage 
     57----- 
    3558 
    3659Clipping with a rectangle 
    37 ------------------------- 
     60~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3861 
    3962:: 
    4063 
    41   $ las2las -i in.las -o out.las -clip 63025000 483450000 63050000 483475000 
     64  $ las2las --input in.las --output out.las --clip 63025000 483450000 63050000 483475000 
    4265 
    4366clips points of in.las with x<63025000 or y<483450000 or x>63050000 
    44 or y>483475000 and stores surviving points to out.las. note that 
     67or y>483475000 and stores surviving points to out.las. Note that 
    4568clip expects the scaled integer values that the points are stored 
    4669with (not the floating point coordinates they represent). 
    4770 
    4871Eliminating specified returns 
    49 ----------------------------- 
     72~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    5073 
    5174:: 
    5275   
    53   $ las2las -i in.las -o out.las -eliminate_return 1 
     76  $ las2las --input in.las --output out.las --eliminate_return 1 
    5477 
    5578eliminates all points of in.las that are designated first returns by the  
     
    5780 
    5881Limiting based on scan angle 
    59 ---------------------------- 
     82~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    6083 
    6184:: 
    6285 
    63   $ las2las -i in.las -o out.las -eliminate_scan_angle_above 15 
     86  $ las2las --input in.las --output out.las --eliminate_scan_angle_above 15 
    6487 
    6588eliminates all points of in.las whose scan angle is above 15 or below -15  
     
    6790 
    6891Limiting based on intensity 
    69 --------------------------- 
     92~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    7093 
    7194:: 
    7295 
    73   $ las2las -i in.las -o out.las -eliminate_intensity_below 1000 -remove_extra_header 
    74  
     96  $ las2las --input in.las --output out.las --eliminate_intensity_below 1000  
     97   
    7598eliminates all points of in.las whose intensity is below 1000 and stores  
    76 surviving points to out.las. in addition all variable headers and any  
    77 additional user headers are stripped from the file. 
     99surviving points to out.las. 
    78100 
    79101Extract last returns 
    80 -------------------- 
     102~~~~~~~~~~~~~~~~~~~~ 
    81103 
    82104:: 
    83105   
    84   $ las2las -i in.las -o out.las -last_only 
     106  $ las2las --input in.las --output out.las --last_only 
    85107 
    86108extracts all last return points from in.las and stores them to out.las. 
     109 
     110Throw out invalid data 
     111~~~~~~~~~~~~~~~~~~~~~~ 
     112 
     113:: 
     114 
     115  $ las2las --input in.las --output out.las --skip_invalid 
     116 
     117removes invalid (according to the ASPRS LAS file format specification) points.   
     118This switch should only be required in a few special circumstances. 
     119 
     120Eliminate ground points 
     121~~~~~~~~~~~~~~~~~~~~~~~ 
     122 
     123:: 
     124 
     125  $ las2las --input in.las --output out.las --eliminate_class 2 
     126 
     127removes points with that have a classification of 2.  Points with a  
     128classification of 2 are conventionally called ground points, but that convention  
     129may not be followed for older LAS 1.0 files. 
     130 
     131Convert to 1.1 
     132~~~~~~~~~~~~~~~~~~~~~~ 
     133 
     134:: 
     135 
     136  $ las2las --input in.las --output out.las --format 1.1 
     137   
     138converts the in.las file to a 1.1-formatted file.  For the most part, this  
     139conversion is "in name only."  For example,  
     140 
     141 
     142  
    87143 
    88144Usage 
     
    101157    las2las -i in.las -last_only -eliminate_intensity_below 2000 -olas > out.las 
    102158    las2las -h 
     159 
     160.. _`LAStools`: http://www.cs.unc.edu/~isenburg/lastools/