An update on this issue. This is a bug and is still present in 1.6.2 unfortunately.
The problem is in ogrsdedatasource.cpp, where the else clause which lists all spatial tables was moved down, so it now corresponds to a different if clause. old code: if ( CSLCount( papszTokens ) == 6 && *papszTokens[5] != '\0' ) { OpenSpatialTable( papszTokens[5] ); } else { EnumerateSpatialTables(); } new code: else if ( CSLCount( papszTokens ) == 8 && *papszTokens[7] != '\0' ) { .... } else { CPLDebug("OGR_SDE", "Setting version to SDE.DEFAULT"); nSDEErr = SetVersionState("SDE.DEFAULT"); EnumerateSpatialTables(); if (!nSDEErr) { // We've already set the error CSLDestroy( papszTokens ); return FALSE; } } Best regards, Bart > Hi list, > > it seems the layer part of an SDE connection string is not picked up > anymore. We're using GDAL 1.6.1. Did anybody else experience this? > > E.g.: > > ogrinfo > SDE:geodatabase.ad.rws.nl,5151,5151,RWS_LEZEN,****,WEGEN.WEGEN_NWB_LIGHT > > lists all tables and not only the one specified. > > TIA. > > Best regards, > Bart > _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev