/
/ 导出为shp
/
/
/
public void ExportFeatureClassToShp(IFeatureLayer pNewLayer, string pFeatureName, string pSavePath)
{
string ExportFileShortName = pFeatureName;
string ExportFilePath = pSavePath;
string shpPath = pSavePath + “\” + ExportFileShortName + “\” + ExportFileShortName + “.shp”;
IFeatureClass apFeatureClass = pNewLayer.FeatureClass;
// string LayerFullPath= pSavePath + “\” + ExportFileShortName;
//设置导出要素类的参数
IFeatureClassName pOutFeatureClassName = new FeatureClassNameClass();
IDataset pOutDataset = (IDataset)apFeatureClass;
pOutFeatureClassName = (IFeatureClassName)pOutDataset.FullName;
//创建一个输出shp文件的工作空间
IWorkspaceFactory p