[fdo-users] SDE Error - Cant fine feature class
Tony
techswami at hotmail.com
Thu Oct 16 19:14:05 EDT 2008
what SDE version are you using
Tony
surrounded wrote:
>
> RESOLVED: I used:
>
> //OSGeo.FDO.Commands.Schema.IDescribeSchema pDS =
> (OSGeo.FDO.Commands.Schema.IDescribeSchema)connection.CreateCommand(OSGeo.FDO.Commands.CommandType.CommandType_DescribeSchema);
>
> //OSGeo.FDO.Schema.FeatureSchemaCollection pFSC = pDS.Execute();
>
> to create a FeatureScheamCollection. From this I was able to get the
> correct FeatureClass name. I used
> the FeatureClass name in sel.SetFeatureClassName("xxxx")
>
> WORKS FINE NOW.
>
>
>
> surrounded wrote:
>>
>> I establish a connection to SDE enterprise geodatabase:
>>
>> I use the following code to access the feature class:
>>
>> connection = getSDEConnection("OSGeo.ArcSDE.3.3");
>> OSGeo.FDO.Commands.Feature.ISelect sel =
>> (OSGeo.FDO.Commands.Feature.ISelect
>> connection.CreateCommand(OSGeo.FDO.Commands.CommandType.CommandType_Select);
>>
>> sel.SetFeatureClassName("Cities");
>> reader = sel.Execute();
>>
>> On the sel.Execute I get the following error:
>> Feature class 'Cities' not found in schema.
>>
>>
>> Any ideas on why this is happening....Thanks
>>
>
>
--
View this message in context: http://n2.nabble.com/SDE-Error---Cant-fine-feature-class-tp1131496p1343209.html
Sent from the FDO Users mailing list archive at Nabble.com.
More information about the fdo-users
mailing list