Geospatial Modelling Environment

copyfeaturedataset (Copy Feature Dataset)

Copies features from one data source to a new data source


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.


copyfeaturedataset(in, out, [where]);

inthe input feature data source
outthe 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)


copyfeaturedataset(in=”C:datacounties.shp”, out=”C:bkupcounties.shp”);

copyfeaturedataset(in=”C:datahomeranges.shp”, pnt=”C:datafemale_homeranges.shp”, where=”SEX=’F'”);


Please consider making a purchase to support the continued development of these tools  Read more...

Tips on how to use this interface efficiently 


Open Source GIS

Copyright © 2001-2014 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn