Description
This command copies the features in the input data source to the specified output data source, retaining all attribute information in the table. This provides an easy way of loading shapefile data into geodatabases, making backup copies of datasets, and, if the 'where' clause is used, writing subsets of data to different output data sources. It could also be used to merge different data sources. If the output data source does not exist, it is created (this is the intended primary use of the tool). If the output data source exists the tool will attempt to load the features and tabular data into this existing data source.
The 'where' clause allows you to process a subset of features. It is highly recommended that you learn about the 'where' clause as it is one of the more powerful aspects of GME. See the 'Strategic commands' section and the 'where' section for further details.
Syntax
copyfeaturedataset(in, out, [where]);
| in | the input feature data source | |
| out | the output feature data source | |
| [where] | the selection statement that will be applied to the feature data source to identify a subset of features to process (see full Help documentation for further details) |
Example
copyfeaturedataset(in="C:\data\counties.shp", out="C:\bkup\counties.shp");
copyfeaturedataset(in="C:\data\homeranges.shp", pnt="C:\data\female_homeranges.shp", where="SEX='F'");