/// <summary> /// Exports the source table using the query filter to the table in the output workspace. /// </summary> /// <param name="source">The source table.</param> /// <param name="filter">The filter used to create a subset of the data.</param> /// <param name="tableName">The name of the output table.</param> /// <param name="workspace">The workspace that will contain the table.</param> /// <param name="handle">The handle to the parent application.</param> /// <returns> /// Returns a <see cref="ITable" /> representing the exported table. /// </returns> public static IFeatureClass Export(this IFeatureClass source, IQueryFilter filter, string tableName, IWorkspace workspace, int handle) { IEnumInvalidObject errors; IEnumFieldError fieldError; return(source.Export(filter, tableName, workspace, source.Fields, handle, true, null, out errors, out fieldError)); }
/// <summary> /// Exports the source table using the query filter to the table in the output workspace. /// </summary> /// <param name="source">The source.</param> /// <param name="filter">The filter.</param> /// <param name="tableName">Name of the output table.</param> /// <param name="workspace">The workspace.</param> /// <param name="handle">The handle.</param> /// <param name="keepFeatureDatset">if set to <c>true</c> when the feature class should be created within feature datset.</param> /// <param name="surrogate">The surrogate for the event handler.</param> /// <param name="errors">The errors that occured during the export.</param> /// <returns> /// Returns a <see cref="IFeatureClass" /> representing the feature class that was exported. /// </returns> public static IFeatureClass Export(this IFeatureClass source, IQueryFilter filter, string tableName, IWorkspace workspace, int handle, bool keepFeatureDatset, FeatureProgress surrogate, out IEnumInvalidObject errors) { IEnumFieldError fieldError; return(source.Export(filter, tableName, workspace, source.Fields, handle, keepFeatureDatset, surrogate, out errors, out fieldError)); }
/// <summary> /// Writes the rows from an feature class to a new feature class. /// </summary> /// <param name="source">The rows from a feature class to be copied.</param> /// <param name="tableName">The name of the table to which the rows will be written.</param> /// <param name="workspace">The workspace that will contain the table.</param> /// <param name="trackCancel">The track cancel.</param> /// <param name="eventHandler">The event handler.</param> /// <returns> /// Returns a <see cref="IFeatureClass" /> representing the exported table. /// </returns> public static IFeatureClass Export(this IFeatureClass source, string tableName, IWorkspace workspace, ITrackCancel trackCancel, IGeoProcessorEvents eventHandler) { return(source.Export(null, tableName, workspace, trackCancel, eventHandler)); }