~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to frmts/sde/sdedataset.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: sdedataset.cpp 17926 2009-10-30 12:59:56Z hobu $
 
2
 * $Id: sdedataset.cpp 22255 2011-04-29 19:03:26Z warmerdam $
3
3
 *
4
4
 * Project:  ESRI ArcSDE Raster reader
5
5
 * Purpose:  Dataset implementaion for ESRI ArcSDE Rasters
78
78
        return CE_Fatal;
79
79
    }
80
80
    
81
 
    long nRasterColumnId = 0;
 
81
    LONG nRasterColumnId = 0;
82
82
 
83
83
    nSDEErr = SE_rascolinfo_get_id( hRasterColumn, 
84
84
                                    &nRasterColumnId);
97
97
        IssueSDEError( nSDEErr, "SE_rascolinfo_get_id" );
98
98
        return CE_Fatal;
99
99
    }
 
100
    
 
101
    LONG nBandsRet;
100
102
    nSDEErr = SE_raster_get_bands(  hConnection, 
101
103
                                    raster, 
102
104
                                    &paohSDERasterBands, 
103
 
                                    (long*)&nBands);
 
105
                                    &nBandsRet);
104
106
    if( nSDEErr != SE_SUCCESS )
105
107
    {
106
108
        IssueSDEError( nSDEErr, "SE_raster_get_bands" );
107
109
        return CE_Fatal;
108
110
    }
 
111
 
 
112
    nBands = nBandsRet;
109
113
    
110
114
    SE_RASBANDINFO band;
111
115
    
112
116
    // grab our other stuff from the first band and hope for the best
113
117
    band = paohSDERasterBands[0];
114
118
    
115
 
    
116
 
    nSDEErr = SE_rasbandinfo_get_band_size( band, 
117
 
                                            (long*)&nRasterXSize, 
118
 
                                            (long*)&nRasterYSize);
 
119
    LONG nXSRet, nYSRet;
 
120
    nSDEErr = SE_rasbandinfo_get_band_size( band, &nXSRet, &nYSRet );
119
121
    if( nSDEErr != SE_SUCCESS )
120
122
    {
121
123
        IssueSDEError( nSDEErr, "SE_rasbandinfo_get_band_size" );
122
124
        return CE_Fatal;
123
125
    }
 
126
 
 
127
    nRasterXSize = nXSRet;
 
128
    nRasterYSize = nYSRet;
124
129
    
125
130
    SE_ENVELOPE extent;
126
131
    nSDEErr = SE_rasbandinfo_get_extent(band, &extent);