Changeset 1595:b013f17b94d1


Ignore:
Timestamp:
02/25/10 11:43:48 (5 months ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
default
Message:

fix up num_points binding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/las2oci.cpp

    r1594 r1595  
    408408    double x0, x1, y0, y1, z0, z1; 
    409409    // const SpatialIndex::Region* b = result.GetBounds(); 
     410 
     411    x0 = b->getLow(0);  
     412    x1 = b->getHigh(0);  
     413    y0 = b->getLow(1);  
     414    y1 = b->getHigh(1); 
     415 
    410416    if (bUse3d) { 
    411417        try { 
     
    647653     
    648654    long* p_num_points = (long*) malloc (1 * sizeof(long)); 
    649     p_num_points[0] = num_points; 
     655    p_num_points[0] = (long)num_points; 
     656     
     657    printf("num points: %d", *p_num_points); 
    650658     
    651659    // :1 
     
    653661     
    654662    // :2 
    655     statement->Bind( &n_results ); 
     663    statement->Bind( p_result_id ); 
    656664 
    657665    // :3 
    658     statement->Bind( (long*)&num_points); 
     666    statement->Bind( p_num_points ); 
     667    printf("num poitns: %d", num_points); 
    659668        
    660669    // :4 
     
    16771686    } 
    16781687 
     1688    con->Commit(); 
    16791689} 
    16801690//  
Note: See TracChangeset for help on using the changeset viewer.