Changeset 833 for trunk/apps/lasmerge.c

Show
Ignore:
Timestamp:
08/17/08 02:23:21 (5 months ago)
Author:
hobu
Message:

add option to allow the skipping of printing VLRs #69

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/apps/lasmerge.c

    r821 r833  
    2222LASPointSummary* SummarizePoints(LASReaderH reader); 
    2323void print_point_summary(LASPointSummary* summary, LASHeaderH header); 
    24 void print_header(LASHeaderH header, const char* file_name); 
     24void print_header(LASHeaderH header, const char* file_name, int bSkipVLR); 
    2525 
    2626void usage() 
     
    7676    int i; 
    7777    int verbose = FALSE; 
     78    int skip_vlr = FALSE; 
    7879    int num_file_name_in = 0; 
    7980    int alloced_file_name_in = 32; 
     
    181182            file_name_out = "stdout"; 
    182183        } 
    183  
     184        else if (   strcmp(argv[i],"--skip_vlr") == 0   || 
     185                    strcmp(argv[i],"--no_vlr") == 0) 
     186        { 
     187            skip_vlr = TRUE; 
     188        }  
    184189        else if (i == argc - 2 && num_file_name_in == 0 && file_name_out == 0) 
    185190        { 
     
    490495        }  
    491496 
    492         print_header(header, file_name_out);         
     497        print_header(header, file_name_out, skip_vlr);         
    493498        summary = SummarizePoints(reader); 
    494499        print_point_summary(summary, header);