Changeset 1597:859b71bc722c


Ignore:
Timestamp:
03/01/10 07:43:01 (5 months ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
default
Message:

re-enable extent overriding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/las2oci.cpp

    r1596 r1597  
    683683    long* p_srid  = 0; 
    684684     
    685     if (srid) { 
     685     
     686    if (srid != 0) { 
    686687        p_srid = (long*) malloc (1 * sizeof(long)); 
    687688        p_srid[0] = srid; 
     689        printf("srid: %d", p_srid[0]); 
    688690    } 
    689691    statement->Bind(p_srid); 
     
    10781080    double tolerance = 0.05; 
    10791081     
    1080     // if (bSetExtents){ 
    1081     //     x0 = xmin; x1 = xmax; 
    1082     //     y0 = ymin; y1 = ymax; 
    1083     //     z0 = zmin; z1 = zmax; 
    1084     // } else { 
     1082    // Nuke our extents of we're overridding them 
     1083    if (bSetExtents){ 
     1084        e->x0 = xmin; e->x1 = xmax; 
     1085        e->y0 = ymin; e->y1 = ymax; 
     1086        e->z0 = zmin; e->z1 = zmax; 
     1087    } 
    10851088        // x0 = query->bounds.getLow(0); 
    10861089        //  x1 = query->bounds.getHigh(0); 
     
    14101413            bSetExtents = true; 
    14111414        } 
    1412         else if (   strcmp(argv[i],"--xmin") == 0  || 
    1413                     strcmp(argv[i],"-xmin") == 0 
    1414                 ) 
    1415         { 
    1416             i++; 
    1417             xmin = atof(argv[i]); 
    1418             printf("xmin: %.3f", xmin); 
    1419             bSetExtents = true; 
    1420         } 
    14211415 
    14221416        else if (   strcmp(argv[i],"--xmax") == 0  || 
Note: See TracChangeset for help on using the changeset viewer.