This is an old revision of the document!
Building a simple model
What will you learn?
- How to use the concept of Regions
An alternate way to solve the exercise of the previous lesson is by means of Region. This subset of functors permits division of a map into several regional maps, which can be input for separate models or submodels, whose parameters are customized for each map’s region. Let’s adapt the previous model to use the concept of regions. First open the Region Tab in the library window.
These functors can be combined to produce regional maps and submodels, as well as to merge the regional maps into a single map after a processing is performed. In this lesson you will learn how to retrieve the area of the remaining forest for each state; as a result each regional map will correspond to a state area. Open the model completed in the previous lesson. Select the functors within the container Repeat with the Hand tool and then drag them out of Repeat.
Delete the container Repeat and place the containers Region Manager from the Region tab and For Each Category from the Control tab. Place the latter within the first.
Region Manager manages the regionalization process, while For Each Category replaces the Repeat making the model iterate for each category present in the categorical map used to define the regions, in this case the map of the Brazilian Amazon states.