[Gdal-dev] return from sdedataset.cpp

chenxuexia xuex_chen at 126.com
Mon Sep 24 22:02:21 EDT 2007


hi, ALL.  I try to read  raster data from sde cinfigured oracle database.  My program always returned from SDEDataset::Open( GDALOpenInfo * poOpenInfo ), traced here://////////////////////////////////////////GDALDataset *SDEDataset::Open( GDALOpenInfo * poOpenInfo )
{........................ SDEDataset *poDS; poDS = new SDEDataset();............../* -------------------------------------------------------------------- */
/*      If we were given a layer name, use that directly, otherwise     */
/*      query for subdatasets.                                          */
/* -------------------------------------------------------------------- */  if (CSLCount( papszTokens ) == 6 ) {......}else {
 ...........//without given a layer name,we get each subdataset.
        return FALSE;// why? when runs to the ELSE{} always return FALSE. //Should we drop this last sentence "return FALSE;"?
    }
    CSLDestroy( papszTokens);
    return( poDS );
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070925/0a4fe537/attachment.html


More information about the Gdal-dev mailing list