jerkerb

Wrong FeatureClass name

Discussion created by jerkerb on Mar 21, 2011
Hi!
I try to use the FeatureClassToGeodatabase GPTool.

//IGPProcess
            FeatureClassToGeodatabase fc2gdb = new FeatureClassToGeodatabase();

            //In_Features
            IWorkspace in_WS = ShapefileWorkspace(shapePath);
            IFeatureWorkspace in_FWS = (IFeatureWorkspace)in_WS;
            IFeatureClass in_FC = in_FWS.OpenFeatureClass(Path.GetFileNameWithoutExtension(shapeName));
            fc2gdb.Input_Features = (object)in_FC;
            //Out_GDB
            fc2gdb.Output_Geodatabase = (object)(m_ConnectionFile);
            //fc2gdb.Output_Geodatabase = (object) m_SDE_Workspace;

            //Run
            RunTool(fc2gdb, null, overwrite, ref returnMessages);

When I run the tool my featureclass name is GPL0. Why?

Best Regards /Jerker

Outcomes