[fdo-users] Get FeatureClassName

Bruno Scott bscott at geomapgis.com
Fri Nov 16 06:30:56 EST 2007


i'm also a little confuse with that.

We create the feature class with the Physical name and we insert feature
with the Logical name?

Is there an API to convert from physical to logical?

Bruno




christophe_geomap wrote:
> 
> I want to create a featureclass and fill the table.
> Create the featureclass --> i use a IApplySchema -->
> FdoFeatureClass::Create(L"mytable",L"");    
> Fill the table --> i use FdoIInsert -->
> FdoIInsert::SetFeatureClassName(featureName);
> How can i get featureName (for PostGis = public~mytable, for king oracle
> -->
> owner~mytable~geometry ...) as much provider-neutral as possible ?
> 
> Thanks
> 
> Christophe
> 
> code sample :
> FdoPtr<FdoIApplySchema>  applyPtr =
> (FdoIApplySchema*)connectionPtr->CreateCommand(FdoCommandType_ApplySchema);
> FdoPtr<FdoFeatureSchema>  schemaPtr;
> ... get or crete schema ...
> FdoPtr<FdoClassCollection>  classCollPtr  = schemaPtr->GetClasses();
> FdoPtr<FdoClassDefinition>  classPtr =
> (FdoClassDefinition*)FdoFeatureClass::Create(L"mytable",L"");    
> classCollPtr->Add(classPtr);
> ...  add properties ...
> 
> applyPtr->SetFeatureSchema(schemaPtr);
> applyPtr->Execute();
> 
> CString strFeatureClassName = "public~mytable";                  //
> postgis
> CString strFeatureClassName = "tableowner~mytable~geometrycol"; //king
> oracle
> CString strFeatureClassName = "mytable";                        // oracle
> autodesk
> 
> FdoPtr<FdoIInsert>  insertPtr  =
> (FdoIInsert*)connectionPtr->CreateCommand(FdoCommandType_Insert);
> insertPtr->SetFeatureClassName(strFeatureClassName);
> ...
> 
> 

-- 
View this message in context: http://www.nabble.com/Get-FeatureClassName-tf4812824s18162.html#a13791426
Sent from the fdo-users mailing list archive at Nabble.com.



More information about the fdo-users mailing list