private void ConvertSHP(string newFeatureSourceId) { _resSvc.CopyResource(_fs.ResourceID, newFeatureSourceId, true); var newFs = (IFeatureSource)_resSvc.GetResource(newFeatureSourceId); var path = newFs.GetConnectionProperty("DefaultFileLocation"); newFs.Provider = "OSGeo.OGR"; newFs.ClearConnectionProperties(); newFs.SetConnectionProperty("DataSource", path); var provider = _featSvc.GetFeatureProvider("OSGeo.OGR"); //Does it have the new default schema property? Use it for a more seamless transition //Otherwise it will default to "OGRSchema" if (provider.ConnectionProperties.Any(p => p.Name == "DefaultSchemaName")) { newFs.SetConnectionProperty("DefaultSchemaName", "Default"); } _resSvc.SaveResource(newFs); }