Installation guide

19
17. Geoprocessing service
This lab section works with the data in folder Sweden.
17.1. Create a Toolbox and a Map Document
Start ArcCatalog
In ArcCatalog tree, navigate your data folder Sweden (in your group folder)
Right-click the folder and choose New > Toolbox, name it as GP tools
Start ArcMap and add at least 3 layers such as swe_cnty, swe_road, swe_city,
symbolize to make a nice map
Click ArcToolbox under the Menu item Window to open ArcToolbox
Right-click in the ArcToolbox window and choose Add Toolbox, then choose GP tools
created above and click Open
4. 2. Create a Geoprocessing Model
Right-click the GP Tools toolbox and choose New > Model
Model > Model Properties
Type ClipCounties for Name and ClipCounties with Buffer for Label, then click OK
In the ArcToolbox window, expand the Analysis Tools toolbox
Under Analysis Tools, expand the Proximity toolset
Drag the Buffer tool from ArcToolbox onto your model
Double check Output Feature set the output feature class to
Yourfolder\data\sweden\buffer.shp
Right-click the rectangle Buffer > Make Variables > From Parameter > Input Features
Right-click the Input Features variable (oval) in the model and choose Properties
In Data Type tab, select Feature Set from the Drop-down list
From the Import schema and symbology drop-down list, select swehiway
Click Apply and then OK > Input Features turns to blue oval
Right-click the Input Features variable again and choose Model Parameter, a small
letter P appears (feature will be a parameter)
Create another parameter for distance. Right-click on the model window and choose
Create Variable
Select Linear Unit from the list and click OK
Click Add Connection button. Draw a line between Linear Unit and Buffer tool
Right-click the Linear Unit and choose Model Parameter
Double-click the Linear Unit and provide initial 0,5 (kilometers) value
Right-click the Output Features and rename to OutBuffer
Next, expand the Extract toolset, drag the Clip tool onto the model
Double-click rectangle Clip, choose swe_cnty for Input Features and OutBuffer for Clip
Features
Click OK
Right-click the OutBuffer shape and make sure that Model Parameter is unchecked
whereas Managed and Intermediate are checked
Right-click on swe_cnty_Clip.shp and make sure that Managed and Intermediate are
not checked whereas Model Parameter and Add to Display are checked