Pages

Sunday, February 3, 2013

Where do smokers live?

Where do smokers live?

By Pam Allison on January 28th, 2013 |                     
According to the American Lung Association, tobacco-caused disease kills more than 392,000 people every year in the U.S., making it the leading cause of preventable death. Another 50,000 people die from exposure to secondhand smoke. The association also notes that in 2004, smoking cost the U.S. more than $193 billion, including $97 billion in lost productivity and $96 billion in direct health care expenditures, or an average of $4,260 per adult smoker. With the implementation of the Patient Protection and Affordable Care Act, states are beginning to address the implications of this important issue.
For example, concerned about projected increases of health care costs, particularly for smokers, Oklahoma State Sen. David Holt, a Republican, is proposing legislation that allows employers to fire cigarette smokers. Current state laws prohibit employers from discriminating against smokers. Holt believes that if people are concerned about losing their jobs, they will stop smoking. He also believes the law will increase productivity and reduce health care costs for people who no longer smoke.
Demographics of U.S. smokers
The CDC claims that in 2010, 19% of all U.S. adults smoked, most of whom smoke less than one pack a day. Where are they? Smokers live in all parts of the U.S. According to Esri, a geographic information systems company, people who smoke less than six packs of cigarettes a week are most likely to live in the Southern and Western U.S. and in Southern Texas.
Click on image to enlarge map.
Click on image to enlarge map.
People who smoke nine or more packs of cigarettes a week are most likely to live in the South.
Click on image to enlarge map.
Click on image to enlarge map.
What type of American is likely to smoke? What type of neighborhoods do they live in? Esri developed the Tapestry Segmentation system that classifies U.S. residential neighborhoods into 65 unique market segments based on socioeconomic and demographic characteristics.
The type of American who likely smokes less than six packs of cigarettes per week is much different from those who might smoke more than nine packs of cigarettes per week. The primary difference is the location of their neighborhoods — urban versus rural.
Residents of City Commons and Urban Rows neighborhoods are twice as likely as the average American to smoke less than six packs of cigarettes a week. City Commons neighborhoods are found primarily in large Southern and Midwestern metropolitan areas. Residents of these neighborhoods are young, single or single parents, live in high-rise apartment buildings, and may be unemployed or work part-time. Urban Rows neighborhoods are found primarily in large Northeastern port cities, with smaller concentrations in the South. Residents are often part of multigenerational households and live in row houses typically built before 1950.
Conversely, residents of Home Town, Rural Bypasses, and Southern Satellites neighborhoods are twice as likely as the average American to smoke nine or more packs of cigarettes a week. Home Town neighborhoods are a mix of singles and families. Residents of these settled, low-density communities are content to stay close to home, so their neighborhoods rarely change. Rural Bypasses neighborhoods are in small Southern towns along back country roads near open space, undeveloped land and farms. Located in the rural South, most of the households in Southern Satellites neighborhoods are comprised of married-couple families. They work in the manufacturing and service industries.
Oklahoma smokers
Holt’s bill is just for the state of Oklahoma. Where do smokers live in the state? If the bill passes, where would businesses and residents be affected the most? Smokers in neighborhoods around larger cities such as Tulsa and Oklahoma City might smoke fewer than six packs of cigarettes a week. Tapestry segments in many of these neighborhoods are City Commons and Modest Income Homes.
Click on image to enlarge map.
Click on image to enlarge map.
Residents of Oklahoma who smoke nine or more packs of cigarettes a week most likely live in rural areas in the eastern part of the state. Tapestry Segmentation classifies many of these neighborhoods as Rural Bypasses, Southern Satellites and Home Town.
Click on image to enlarge map.
Click on image to enlarge map.
Why does this matter?
Knowing where smokers live can help states to target non-smoking campaigns to people who need them the most. While it is unknown whether the proposed legislation will pass in Oklahoma, the desire to decrease smoking is a legitimate concern for all states and government-funded health care programs. Many smoke-related health problems are preventable when people stop smoking, lowering their smoke-related health care costs.
More information about Esri’s data can be found at www.esri.com/data, or to learn more about Esri in general, go to www.esri.com.
Pam Allison is a digital media, marketing strategist and location intelligence consultant. You can visit her blog at www.pamallison.com.

Saturday, February 2, 2013

Installing a new ESRI extension Failture (Registration Failed)

 Installing a new ESRI extension Failture (Registration Failed)

 
This error appear when installing a new extension on ArcGIS desktop environment 10.x.
To fix run as Administrator. 
 
 
If you are running ESRIRegAsm.exe manually, run the Command prompt (cmd) as administrator.

Executing tools in ModelBuilder

Executing tools in ModelBuilder
This tutorial takes you step-by-step through creating a model and executing tools in ModelBuilder. You start by adding a tool to ModelBuilder and supplying values for the tool's parameters. This constructs a process. A model is built by connecting processes.
This tutorial builds a very simple model that identifies the vegetation types near proposed roads. In the model, the roads are first buffered using values from a distance field in the roads attribute table. The output from the Buffer tool is used to clip the vegetation data to create a dataset of vegetation types within the buffer polygons.
The tutorial is composed of six broad steps:

Steps:
  1. Copy tutorial data
  2. Open the map document
  3. Create a new model
  4. Add tools and data to the model
  5. Fill in the tool parameters
  6. Run the model
  7. Save the model

1—Copying tutorial data

It is assumed that you have installed ArcGIS Desktop (ArcView, ArcEditor, or ArcInfo) before you begin this tutorial. The data required for this tutorial (included on the ArcGIS Desktop CD) by default is installed in C:\arcgis\ArcTutor. The tutorial scenario is fictitious, and the original data has been adapted for the tutorial.

Steps:
  1. To avoid corrupting the original data, copy the ModelBuilder folder from C:\arcgis\ArcTutor to the C drive on your computer. If you are copying the data to another drive or location, make sure to use that location for all the steps below.

2—Opening the map document

Browse to the C:\ModelBuilder folder in Windows Explorer and double click the Extract Vegetation.mxd. This will start ArcMap and open the map document, or

Steps:
  1. Start ArcMap by clicking Start > All Programs > ArcGIS > ArcMap 10.
  2. On the ArcMap - Getting Started dialog box, click Existing Maps > Browse for more.
    The Open ArcMap Document dialog box appears.
  3. Browse to C:\ModelBuilder folder, select Extract Vegetation.mxd, and click Open.
    This opens the Extract Vegetation.mxd.

3—Creating a new model

Steps:
  1. Click the ModelBuilder button ModelBuilder Window on the ArcMap Standard toolbar.
    This opens the ModelBuilder window for editing.
  2. You can also create a new model by right-clicking an existing toolbox and choosing New > Model. This creates a model in the toolbox with a default name and opens the model for editing.

4—Adding tools and data to a model

Now that the model is open for editing, you will add two tools using the Search window:

Steps:
  1. In ArcMap, click Geoprocessing > Search For Tools.
    This opens a Search window that you can dock anywhere in ArcMap.
    Opening Search window

  2. On the Search window, type Buffer, then click the Search button Search.
    The Buffer tool is listed along with other search items.
  3. Drag the search item Buffer (Analysis) (which represents the Buffer tool found in the Analysis toolbox) onto the ModelBuilder canvas in the white space.
    Adding tools from Search
    This adds the tool and the output data variable to the model. The output variable is connected to the tool by a connector. Both the tool and output data are empty (without color) as none of the tool parameters have been supplied.
  4. Search for and add the Clip tool in the Analysis toolbox in a similar manner. If the two tools overlap, click the Auto Layout button Auto Layout on the ModelBuilder toolbar to arrange the tools.
    Adding the Clip tool
  5. There are two other methods to add tools in a model that are not used in this tutorial, but have been listed to introduce you to them:
    • In the Catalog window, navigate to Toolboxes > System Toolboxes > Analysis Tools > Proximity. You can select Buffer and drag the tool onto the ModelBuilder canvas in the white space.
    • On the ModelBuilder Standard toolbar you can click the Add Data or Tool button Add Data or Tools, and navigate to Toolboxes > System Toolboxes > Analysis Tools > Proximity. Select the Buffer tool and click Add.

5—Filling in tool parameters

Now that the tools are added to the model, you will fill in the tool parameters.

Steps:
  1. In ModelBuilder, double-click the Buffer tool to open its tool dialog box.
  2. For the Input Features parameter, click the browse button Browse and navigate to the input geodatabase (C:\ModelBuilder\ToolData\Input.gdb).
  3. Choose the PlanA_Roads feature class and click Add.
  4. Once you fill in the input features, the Output Feature Class parameter is automatically generated and filled in for you. Replace this autogenerated output name by clicking the Browse button Browse for the Output Feature Class parameter. Navigate to the output geodatabase in the ModelBuilder folder (C:\ModelBuilder\Scratch\Output.gdb), type BufferedFC for the output name, then click Save.
  5. For the Distance parameter, choose the Field option and choose the Distance field from the drop-down list.
  6. Click OK. (You don't need to fill in any other parameters.)
    Filling in Buffer tool parameters
    The input data is added as a variable to the model (the blue oval in the above illustration) and is automatically connected to the Buffer. The input variable (the blue oval), the tool (the yellow rectangle), and the output variable (the green oval) change colors to indicate that all parameter values have been supplied and the tool is ready to run. Note that clicking OK on the tool dialog box does not execute the tool in ModelBuilder.
    When data or tools are added to a model, they are referred to as model elements. There are three basic types of elements: variables (such as datasets), tools, and connectors.
  7. Now double-click Clip to open its tool dialog box.
  8. For the Input Features parameter, click the Browse button Browse and navigate to the input geodatabase (C:\ModelBuilder\ToolData\Input.gdb).
  9. Choose the vegtype feature class and click Add.
  10. For the Clip Feature parameter, click the arrow and choose BufferedFC from the drop down list. The blue recycle symbol Model variable means that BufferedFC is a variable in the model. This variable was created in the model when you added the Buffer tool.
  11. Click the browse button Browse for the Output Feature Class parameter, navigate to the output geodatabase (C:\ModelBuilder\Scratch\Output.gdb), type ClippedFC for the dataset name, then click Save.
  12. Click OK on the Clip tool dialog box.
    The output variable of the Buffer tool is automatically connected (using a connector) as an input to Clip, as illustrated below.
    Filling in Clip tool parameters

6—Running the model

After all the parameters of the tools have been filled in, the model is ready to run.

Steps:
  1. Before you run the model, select the ClippedFC variable, right-click, then click the Add To Display option. Setting this option ensures that when the model is run from ModelBuilder, the output ClippedFC will be added to the display in ArcMap for quick viewing of the results.
  2. From the ModelBuilder menu, click Model > Run Entire Model.
    The model runs and the output is added to the display. After the model has finished running, both the tools (the yellow rectangles) and output variables (the green ovals) show a drop shadow around them indicating that these tools have been run.

Running the model on different roads

To run the model on different roads (such as PlanB or PlanC feature classes), you have two choices:
  1. Double-click Buffer and navigate to another feature class, or
  2. Drag the data from the Catalog window onto the ModelBuilder canvas to create a new data variable, then connect this variable to Buffer. Follow the steps below to see how this works.

Steps:
  1. On the ArcMap menu, select Geoprocessing > Geoprocessing Options.
    1. Ensure that the check box next to When connecting elements, display valid parameters when more than one is available is checked.
    2. Click OK.
  2. Navigate to the input geodatabase in the Catalog window.
  3. Choose the PlanB_Roads feature class and drag it onto the ModelBuilder canvas.
  4. Click the Connect button Add Connection, then do the following:
    1. Click the PlanB_Roads variable element.
    2. Click the Buffer tool element. A shortcut menu appears containing the choices of available parameters for the tool.
    3. Choose the Input Features parameter from the list.
    This connects the PlanB_Roads variable to Buffer and automatically disconnects the PlanA_Roads variable that was previously connected to the tool. The model elements lose their drop shadow, signifying that the model has not been run with the new variable you added.
  5. Double-click Buffer and choose the correct distance field from the PlanB_Roads feature class.
  6. Run the model with Model > Run Entire Model.
    The model runs and the output is added to the display. After the model has finished running, both the tools and output variables show a drop shadow around them indicating that these tools have been run. The existing output ClippedFC layer (from the previous run with PlanA_Roads) in the ArcMap table of contents is updated with the results from PlanB_Roads.

7—Saving a model

Saving is the last step for this tutorial. You will use the saved model in the Creating tools with ModelBuilder tutorial.

Steps:
  1. Click the Save tool Save on the ModelBuilder toolbar and navigate to C:\ModelBuilder.
  2. A model can only be saved in a toolbox. Click the New Toolbox icon New Toolbox on the navigation window.
    A toolbox with a default name is added in the workspace.
  3. Change the name to MyTools.tbx.
    Saving a model
  4. Select MyTools.tbx and click Save to save the model with the default name (Model).

Additional analysis

If you want to do some analysis with the model, you can add the Summary Statistics tool to get a summary table of affected area by vegetation type within the buffer polygons around the proposed roads.

Steps:
  1. Use PlanA_Roads as input in the Buffer tool for this analysis.
  2. Find the Summary Statistics tool in the Search window.
  3. Drag the tool into the model.
  4. Double-click the Summary Statistics element to open the tool dialog box.
  5. For the Input Table parameter, click the arrow and choose ClippedFC with a blue recycle icon Model Variable next to it from the drop down list. This recycle icon means it is a variable in the model.
  6. For the Output Table parameter, browse to the output geodatabase (C:\ModelBuilder\Scratch\Output.gdb), type AffectedVegetation for the name, then click Save.
  7. For the Statistic Field(s) parameter, choose Shape_Area from the list.
  8. Click the cell next to Shape_Area under Statistic Type and choose SUM from the drop down list.
  9. For the Case field parameter, choose VEG_TYPE from the list.
    The completed Summary Statistics dialog box is illustrated below.
    Using Summary Statistics tool
  10. Click OK.
  11. Confirm that the Add to Display option is checked for ClippedFC by right clicking it.
  12. Right click and check the Add to Display option for the AffectedVegetation variable. This will add the ouput to the display after the model runs.
  13. Run the model.
    The output ClippedFC and the AffectedVagetation table is added to display in the ArcMap table of contents.
  14. Open the table by right-clicking and clicking Open.
    The table shows a summary of area by vegetation type within the buffer polygons that will be affected by the proposed roads for plan A.


Copyright © 1995-2011 Esri. All rights reserved.

Creating tools with ModelBuilder

Tutorial: Creating tools with ModelBuilder
This tutorial takes you step-by-step through the process of creating a model tool. In this tutorial, the model built in the Executing tools in ModelBuilder tutorial is made into a useful tool by exposing model variables as model parameters.
For a broad overview of creating model tools, see A quick tour of creating tools with ModelBuilder.
It is assumed that you have installed ArcGIS Desktop (ArcView, ArcEditor, or ArcInfo) before you begin this tutorial. The data required for this tutorial (included on the ArcGIS Desktop CD) by default is installed in C:\arcgis\ArcTutor. The tutorial scenario is fictitious, and the original data has been adapted for the tutorial.
To avoid corrupting the original data, copy the ModelBuilder folder from C:\arcgis\ArcTutor to the C drive on your computer. If you are copying the data to another drive or location, make sure to use that drive for all the steps below.

Steps:
  1. Open the map document.
  2. Create the model.
  3. Expose tool parameters.
  4. Create model parameters.
  5. Rename model elements.
  6. Set model parameter order.
  7. Set model parameter type.
  8. Set filters on model parameters.
  9. Set symbology for output data.
  10. Manage intermediate data.
  11. Change general model properties.
  12. Document the model.

1-Open the map document

Browse to the C:\ModelBuilder folder in Windows Explorer and double click the Extract Vegetation.mxd. This will start ArcMap and open the map document, or

Steps:
  1. Start ArcMap by clicking Start > All Programs > ArcGIS > ArcMap 10.
  2. On the ArcMap - Getting Started dialog box, click Existing Maps > Browse for more.
    The Open ArcMap Document dialog box appears.
  3. Browse to C:\ModelBuilder folder, select Extract Vegetation.mxd, and click Open.
    This opens the Extract Vegetation.mxd.

2-Creating the initial model

Follow the steps in Executing tools in ModelBuilder. The same model is used in this tutorial as the starting point.
Starting model
If the model was saved previously, open the model by right-clicking the model and selecting Edit. If this model was saved after the model was run in the "Executing tools in ModelBuilder tutorial," the model elements may have a drop shadow around them. To remove the drop shadows, validate the entire model by clicking the Validate Entire Model button Validate Entire Model on the ModelBuilder toolbar.
Double-click the example model from the Catalog window. The tool dialog box opens but shows no parameters, as illustrated below.
Model tool dialog

If you run the tool by clicking OK, the model will run. The output of the model (ClippedFC) will not be added to the ArcMap table of contents, even though Add To Display was checked for the output variable. The reason is that when a model is run from its tool dialog box, the Add To Display setting is ignored. To add the output to the display, you must make the output variable a model parameter.
Another reason for creating model parameters is that you want to run the model with different inputs without having to open ModelBuilder every time, as illustrated below.
Model tool with all its parameters
Once the model parameters have been created, you can execute the model from its tool dialog box, supplying different values for the Input Roads, Buffer Distance, Input Vegetation, Output Clipped Feature Class, and XY Tolerance parameters. You don't have to open ModelBuilder each time you want to run the model—you can use the tool dialog box instead. An added advantage of running a model from its tool dialog box is that a result in the Results window is created; running a model within ModelBuilder does not create a result in the Results window.
The remaining steps will expose model variables as parameters so they appear on the model tool dialog box as shown above.

3-Exposing tool parameters

To define the Buffer Distance and XY Tolerance parameters, you need to create model variables for them.
When you add a tool to a model, model variables are automatically created for input and output datasets, but not for any other tool parameters. The reason is aesthetics—if variables were automatically created for every tool parameter, the model diagram would quickly become unreadable. For example, when you add the Buffer tool to a model, a variable is automatically made for the Output Feature Class parameter. After you right-click Buffer and fill in the Input Features parameter, a model variable is created for the input features. All other parameters, such as Distance, Side Type, and End Type, are not automatically added as variables in the model. The steps below create model variables for Distance [value or field] and XY Tolerance.
Steps:
  1. In the Catalog window, right-click the model and click Edit. This opens the model in ModelBuilder.
  2. Right-click Buffer.
  3. Click Make Variable > From Parameter > Distance [value or field].
    This adds the Distance parameter as a variable in the model.
    Exposing Distance parameter

  4. Right-click Clip.
  5. Click Make Variable > From Parameter > XY Tolerance.

4-Creating model parameters

Now that you've created variables for Distance and XY Tolerance, you're ready to make model parameters.
Steps:
  1. Right-click Distance [value or field] and check the Make Parameter option, as illustrated below.
    Making model parameter
    The letter P appears beside the variable, indicating it is a model parameter. This model parameter then also appears on the model tool dialog box.
  2. Create model parameters for the following variables (do not make a model parameter for BufferedFC):
    • PlanA_Roads
    • vegetype
    • XY Tolerance
    • ClippedFC

5-Renaming model elements

ModelBuilder assigns default names to variables. Variable names are used for parameter names on the model tool dialog box. It is good practice to rename variables, especially if they are model parameters.

Steps:
  1. Right-click PlanA_Roads and click Rename.
  2. Type Input Roads and click OK.
    The name of the variable changes to Input Roads.
  3. Rename the remaining variables as follows:
    • Rename Distance [value or field] to Buffer Distance.
    • Rename vegetype to Input Vegetation.
    • Rename ClippedFC to Output Clipped Feature Class.
  4. Save Save the model. You do not need to exit ModelBuilder.
  5. Double-click the model from the Catalog window to open the model tool dialog box. You may have to move or minimize the ModelBuilder window to access the Catalog window. The model tool dialog box should look similar to the illustration below. The order of the parameters may be different on your dialog box, but this is not an issue since you'll change the order below.
    Renamed variables
    You can execute your tool by clicking OK, but it is suggested that you choose a different output feature class before executing. The tool executes, and the output feature class is added to the ArcMap table of contents. Unlike running a model within ModelBuilder, running the model from its dialog box does not change the model diagram.

6-Setting model parameter order

As illustrated above, the order of the parameters is not ideal. The standard practice is to order parameters as follows:
  • Required input datasets
  • Other required parameters that affect tool execution
  • Required output datasets
  • Optional parameters

Steps:
  1. In ModelBuilder, click Model > Model Properties.
  2. Click the Parameters tab.
  3. Choose the Input Roads parameter and move it to the top using the Up and Down arrow buttons on the right side.
  4. Change the position of other parameters as shown below:
    Changing parameter order

7-Setting model parameter type

Once the model parameters are set in the correct order, change the type of the parameter. If a parameter is a required parameter of a tool in the model, you will not be able to change the type to optional from these settings.

Steps:
  1. In ModelBuilder, click Model > Model Properties.
  2. Click the Parameters tab.
  3. Click the cell under the Type category for XY Tolerance. A list appears with two options. For this example, keep XY Tolerance as an optional parameter and the rest as a required parameter type as shown in the illustration below.
    Changing parameter type

8-Setting filters on model parameters

You can restrict the type of input to any parameter by applying filters to parameters. The model in this example expects the Input Roads parameter to be line features. In the following steps, the parameter is modified by applying a filter so that it only accepts line features.

Steps:
  1. Click Model > Model Properties.
  2. Click the Parameters tab.
  3. Choose Input Roads and click the cell under the Filter category.
  4. Choose the Feature Class filter.
    The Feature Class dialog box opens.
  5. Uncheck all the types except Polyline and click OK.
  6. Click OK on the Model Properties dialog box to apply the filter.
    Adding filter

9-Setting symbology for output data

The output of a model can be set to have a particular symbology that is used to display the output. For this example, the symbology is based on the type of vegetation within the buffer zone. To set the symbology for the output data, the first step is to create a layer file, and the second step is to define the layer file in the output data properties. For this tutorial, a layer symbology file has been created for you.

Steps:
  1. In the ModelBuilder window, right-click Output Clipped Feature Class and click Properties.
  2. Click the Layer Symbology tab.
  3. Browse the layer file from the ToolData folder that you copied in C:\ModelBuilder\ToolData.
  4. Choose OutputSymbology.lyr and click Add.
    Setting output data symbology
  5. Click OK.

10-Managing intermediate data

When you run a model, output data is created for each process in the model. Some of the data created is of no use after the model is run since it was only created to connect to another process that creates new output. Such data is called intermediate data. All outputs except the final output, or those that have been made model parameters, are automatically made intermediate data in the model. In this example, the output of the Buffer tool is only useful as an input to the Clip tool and is not used after that, so the Intermediate option is checked. You can choose to save the intermediate data by unchecking the Intermediate option.
Managing intermediate data

11-Changing general model properties

You can set the model name, label, and description for the model.

Steps:
  1. Click Model > Model Properties from the ModelBuilder interface.
  2. Type ExtractVegetationforProposedRoads for the name of the model. No spaces are allowed in the model name.
  3. Type Extract Vegetation for Proposed Roads in the Label text box. Spaces are allowed in the model label. This label is used to display the model name in the Catalog window.
  4. Type the desired text in the Description text box.
    Check the Store relative path names (instead of absolute paths) option so that you can share your model tool or move your model data and model to a different location. This option is not used in this tutorial but has been introduced here as a good practice to follow for your future models and model tools that you will share.
  5. Click OK.
    Changing general properties

  6. Save Save the finished model and exit ModelBuilder.
    Complete model
  7. Double-click the model from the Catalog window to open the model tool dialog box. Since the model was saved with the predefined values, all the parameters on the dialog box are filled in. You can change the value of any parameter here by entering a new value. Click OK to run. The final output of the model (Output Clipped Feature Class) is added to the display by default, and the model messages are posted in the Results window. To see your results, uncheck the Vegetation Type layer in the map document table of contents.
    Final output

12-Documenting the model

It is always a good practice to document the model before you share it. To document:

Steps:
  1. Right click the model in Catalog window and click Item Description.
    This opens the Item Descriptionwindow, displaying the Description page.
  2. Click the Edit button on the Item Description window
    This opens the documentation editor to enter the item description.
  3. Type in appropriate description for each item in this model and click the Save button.
  4. To learn more about documenting take A quick tour of documenting tools and toolboxes

Additional analysis

If you want to do some analysis with the model, you can add the Summary Statistics tool to get a summary table of affected area by vegetation type within the buffer polygons around the proposed roads.
The steps below will also show you how to use a model as a tool inside another model.

Steps:
  1. Open a new model by clicking the ModelBuilder button ModelBuilder Window on the ArcMap Standard toolbar.
  2. Now that you have created a model tool, you can use it just like any other tool. You can add the model tool to a new model by dragging it from the Catalog window into the new model, as illustrated below.
    Adding model within a model
  3. Since the model tool had predefined values for input and output parameters, it is added to the new model with input and output variables (the blue and green ovals). Note that not all parameters of the model tool are exposed when added in another model. Also, the original names of the input datasets have been used. You can make variables and rename them as described earlier in this tutorial.
  4. Open the Search window (if not already open in ArcMap) by clicking Geoprocessing > Search For Tools.
    This opens the Search window.
  5. In the Search window, type Summary Statistics and click the Search button Search.
  6. Drag the tool into the model.
  7. Double-click the Summary Statistics element to open the tool dialog box.
  8. For the Input Table parameter, click the arrow and choose Output Clipped Feature Class with a blue recycle icon Model Variable next to it. This recycle icon means it is a variable in the model.
  9. For the Output Table parameter, browse to the output geodatabase (C:\ModelBuilder\Scratch\Output.gdb), type AffectedVegetation for the name, then click Save.
  10. For the Statistic Field(s) parameter, choose Shape_Area from the list.
  11. Click the cell next to Shape_Area under Statistic Type and choose SUM from the drop down list.
  12. For the Case field parameter, choose VEG_TYPE from the list.
  13. The completed model with the Summary Statistics dialog box is illustrated below.
    Adding model within a model
  14. Click OK.
  15. Right-click Output Clipped Feature Class (the green oval) and check Add to Display. This adds the output to the display after the model runs.
  16. Right click and check the Add to Display option for the AffectedVegetation variable. This will add the ouput to the display after the model runs.
  17. Run the model.
    The output Output Clipped Feature Class and the AffectedVegetation table are added to the display in the ArcMap table of contents.
  18. Open the table by right-clicking and clicking Open.
    The table shows a summary of area by vegetation type within the buffer polygons that will be affected by the proposed roads for plan A.


Copyright © 1995-2011 Esri. All rights reserved.