Select to view content in your preferred language

Can't open Feature class with specific coordinate system in stand-alone application

573
0
02-01-2012 10:20 PM
NatalyaIdrisova
New Contributor
In Visual studio 2010 I have a desktop console application.
When I run code below,
IWorkspaceFactory pWorkspaceFactory = new FileGDBWorkspaceFactory();
pWorkspace = pWorkspaceFactory.OpenFromFile(m_Path, 0) as IFeatureWorkspace;
IFeatureClass pFeature = pWorkspace.OpenFeatureClass(s);

visual studio throw COMException with message:
"the input string is not a geographic or projected coordinate system"
on the line
IFeatureClass pFeature = pWorkspace.OpenFeatureClass(s); 


I use ArcObjects SDK 10. The feature class, i'm trying to open by using classic methods (pFeatureWorkspace.OpenFeatureClass(myFeatureClass)), has projected coordinate system, different from standard package of prj's, which goes with ArcGIS Desktop deployment.

How to solve this problem?
0 Kudos
0 Replies