~ubuntu-branches/ubuntu/trusty/liblas/trusty-proposed

« back to all changes in this revision

Viewing changes to apps/las2txt.c

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2014-01-05 17:00:29 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140105170029-ddtp0j63x5jvck2u
Tags: 1.7.0+dfsg-2
Fixed missing linking of system boost component.
(closes: #733282)

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
    FILE* file_out = NULL;
112
112
    int len;
113
113
    
114
 
    uint32_t index = 0;
 
114
    unsigned int index = 0;
115
115
    
116
116
    for (i = 1; i < argc; i++)
117
117
    {
316
316
            }
317
317
 
318
318
            len = (int)strlen(file_name_in);
319
 
            file_name_out = strdup(file_name_in);
 
319
            file_name_out = LASCopyString(file_name_in);
320
320
            if (file_name_out[len-3] == '.' && file_name_out[len-2] == 'g' && file_name_out[len-1] == 'z')
321
321
            {
322
322
                len = len - 4;
487
487
            {
488
488
            /* // the x coordinate */      
489
489
            case 'x': 
490
 
                lidardouble2string(printstring, LASPoint_GetX(p)); fprintf(file_out, printstring);
 
490
                lidardouble2string(printstring, LASPoint_GetX(p)); fprintf(file_out, "%s", printstring);
491
491
                break;
492
492
            /* // the y coordinate */
493
493
            case 'y': 
494
 
                lidardouble2string(printstring, LASPoint_GetY(p)); fprintf(file_out, printstring);
 
494
                lidardouble2string(printstring, LASPoint_GetY(p)); fprintf(file_out, "%s", printstring);
495
495
                break;
496
496
            /* // the z coordinate */ 
497
497
            case 'z': 
498
 
                lidardouble2string(printstring, LASPoint_GetZ(p)); fprintf(file_out, printstring);
 
498
                lidardouble2string(printstring, LASPoint_GetZ(p)); fprintf(file_out, "%s", printstring);
499
499
                break;
500
500
            /* // the gps-time */
501
501
            case 't': 
502
 
                lidardouble2string(printstring,LASPoint_GetTime(p)); fprintf(file_out, printstring);
 
502
                lidardouble2string(printstring,LASPoint_GetTime(p)); fprintf(file_out, "%s", printstring);
503
503
                break;
504
504
            /* // the intensity */
505
505
            case 'i': 
538
538
                fprintf(file_out, "%d", LASColor_GetBlue(color));
539
539
                break;            
540
540
            case 'M':
541
 
                fprintf(file_out, "%d", index);
 
541
                fprintf(file_out, "%u", index);
542
542
                break;
543
543
            case 'p':
544
544
                fprintf(file_out, "%d", LASPoint_GetPointSourceId(p));