This is an old revision of the document!

PHP's gd library is missing or unable to create PNG images

LESSON 6: Extracting the attributes and calculating basic statistics from a map on Dinamica EGO

In this lesson we would like to demonstrate some details on how Dinamica EGO extracts the attributes and calculates basic statistics from a map, creating a table that contains these extracted attributes.

Which Functors will you use in this lesson? Load Map, Extract Map Attributes and Decorate Map Attribute Table

Decorate Map Attribute Table layers is stored in the Dinamica Store. To install it go to Tools » Submodel Manager » Store.

Here, we will use: The air_temperature raster layer Dinamica EGO\Guidebook Dinamica_4\Database\Climate_bh\air_temperature.tif

Let's go!

First, click on the Input/Output tab, grab and place on the sketch one Load Map and open the air_temperature.tif file. Next, click on the Map Algebra tab, place on the sketch one Calculate Map container. Additionally, click on the Map Algebra tab and place one Extract Map Attributes and one Decorate Map Attributes Table.

Now you can connect the functor Load Map to the Extract Map Attributes container and the container Extract Map Attributes to Decorate Map attributes Table. A Connect Ports window should pop up, connect Attributes to Attribute Lookup Table.

Click once on the Decorate Map Attribute Table to prompt the functor toolbar, then, click on the eye icon - Inspect functor. Inside the functor viewer window that will pop up, click on the eye icon - Inspect port output, this will mark the port for inspection. You can close the window and save and run the model.

The final model will look like this:

Click again on the eye icon on the functor toolbar of Decorate Map Attribute Table. In the next window the table will be displayed.

Congratulations, you have successfully completed this lesson!

Next Lesson
Back to Guidebook Start