HOW TO
The instructions provided describe how to define the projection for all files in a workspace.
In ArcMap, use model iteration to define the projection for all files in a workspace. The Define Projection tool is used when the files have no assigned projection.
Note: In ArcMap, click Geoprocessing > Geoprocessing Options. In the Geoprocessing Options window, ensure the When connecting elements, display valid parameters when more than one is available check box is checked, as shown in the image below. The ModelBuilder Connect tool displays the option to select the target parameters.
Note: To view the model properties, right-click the model in the Catalog pane, and click Properties. In the Model Properties window, click the General tab. The General tab displays the options to configure the model's name, label, and description.
Note: The Wildcard (optional) and Feature Type (optional) parameters are used to restrict the feature classes selected for the iteration. This iterator has two output variables, the output feature class file, and the name of the output feature class. The output FeatureClass file can be connected to the next tool in the model for processing, and the Name variable can be used for inline variable substitution.
Note: ModelBuilder uses color to indicate the status of tools and variables. A white color indicates input parameters are not specified. Once the parameteres are specified, the iterator color changes to orange (other tools change to gold). Inputs are displayed in blue and outputs in green.
The iterator before and after parameter values are provided.
Note: The Define Projection tool is used to define the projection of a feature class that does not have any specified coordinate system. When the tool is run from the model, it does not create a new feature class as output, it only sets the projection for the original feature class. If the tool is used on a feature class that already has a projection defined, the following error message is returned, "000132: The dataset already has a projection defined."
Note: A process in the model is ready to run only when all required parameters are provided for the iterator and the tool. In the model window, ensure all boxes and ovals are colored before running the model.
Note: The Iterate Feature Classes tool iterates the feature classes in a workspace. The output of the iterator is the input of the Define Projection tool. The Define Projection tool modifies the input feature class rather than creating a new output feature class. When the model is run, the projection of the feature classes in the workspace is set by the tool.
Article ID: 000012116
Get help from ArcGIS experts
Download the Esri Support App