The Dinamica EGO Map Viewer is a tool designed to view and interpret map information.
The components of the Map Viewer interface are described in more detail in the following sections:
The main window is where most information regarding the viewer state is located. On the left you have the toolbar of the Map Viewer as a whole, on the right you have a list of loaded maps and tools to manage them.
Each toolbar button is described below:
1) Load new maps discarding the previous ones, load new maps at the top of the current map list, load new map replacing a selected one, load saved viewer state.
2) Save viewer state (save transformations, map stack settings, background color and movie maker settings).
3) Save current visualization (including legend and overview map, if visible) as a bitmap image.
4) Reload current selected map.
5) Open movie maker (allow users to make *.mp4 movies from a series of maps in a easy way).
6) Create/Split map groups (grouping maps allow users to apply calculate expressions on top of a custom stack).
7) Toggle map legend (and if image is currently in category mod, toggle categories visualization).
8) Toggle birdview (render a small overview map showing the location of the currently zoomed view).
9) Zoom to fit window.
10) Zoom in (zoom in over hovered cell).
11) Zoom out (zoom out over hovered cell).
12) Zoom to selection rectangle (selected rectangle will cover entire screen space available).
13) Pan (allow users to move the current visualization area).
14) Analyze cells values in specified interval.
15) Previous view (if the user is making many visualization steps, it is possible to go back to the last step using this button).
16) Background color (change application background color).
17) Toggle geoposition linking between two or more instances of the map viewer.
18) Quit.
Allow users to select which color represents each cell in visualization area. Cells are first extracted from the map in their original values (in any range) and then re-sampled using the histogram curve. After that, their values fall in the [0, 255] range, which are mapped to palette colors.
The color corresponding to each individual value can be changed by clicking on the corresponding color rectangle. You can also check color index value by hovering your cursor over the color rectangle.
You can also create a color palette using a linear interpolation between two color values (gradient). All you have to do is click the gradient button and set your range.
After that, you can click the interpolate button and the new palette view be generated.
Keep in mind that palettes are not saved until the user chooses to do so. If you made any mistake, you can just click “Cancel” and try again. If you click “Ok”, the palette will be changed locally, but will reset if you restart the application.
Saved palettes are stored on the disk in the user palette folder Dinamica EGO/Dmps
, so every time you reopen the map viewer, you will still have them. Changes made by the users in predefined palettes only affect their own instance of the application. To reset the predefined palettes to their default state, remove the user palette folder and restart the application.
C:\Users\<User Name>\Documents\Dinamica EGO\Dmps
on Windows
The histogram window is responsible for assigning transformations from image original values (in any range) to palette range [0, 255]. The histogram curve will adjust any value smaller than the “From:” limit to 0, and any value greater than the “To:” limit to 255. Any other values will be mapped using the histogram curve to the “Y” coordinate on the color palette on the left.
There are currently four options for loading maps (or a group of maps, if you hold the CTRL key while selecting the filenames on the file browser):
Load map (cleaning map list) | Erase the current map list (label “Maps” on main dialog). |
---|---|
Load map (keeping map list) | Load the new map at the top of the current map list. Every incompatible map (different number of lines or columns) will be turned off (made non-visible). Keep in mind that if you open a incompatible map, the current transformation will be erased and the default transformation restored. |
Load map on selection | Load the new map replacing the selected map. This option is only available if there is a map selected. All transformations (histogram, palette, pan, zoom) will be left untouched. The new map will try to match the active map layer selection |
Load viewer state | Load an stored viewer state from a file, replacing the map stack, the background color, current palettes, histogram transformations and everything else. |
After your map is loaded, its name will displayed on the “Maps” list on the right side of the map viewer interface.
Initially, the setting corresponding to a loaded map is Collapsed. To expand the settings panel, just click on its corresponding “expand arrow”.
As you can see, this button is just a toggle between “normal” mode and “category” mode. Enabling the category mode ignores the map transformation and uses the category colors instead. Also, when showing legends in category mode, category colors and names are displayed instead of the legend range.
You can retrieve map information by clicking on the icon “i” (Layer information).
This information comes from Dinamica EGO itself, the available rows can vary from map to map.
The functions you have for each map are described below:
1) Change map layer. If your map has many layers, you can select the active layer to be shown. Only one layer can be used at a time.
2) Change map palette.
3) Opacity (by default, viewer show opaque maps, but you can set a transparency threshold for better visualization).
4) Image Expression (calculate expression - just like calculate map on Dinamica EGO - for map values).
5) Histogram transformation.
6) Edit color palette selected on the left combo box (2).
7) Toggle category view (only available for maps with category information).
8) Toggle map visibility.
9) Remove map from stack
Map Viewer can be used to generated movies (in mp4 format) from a set of maps. This is useful because:
On a computer, movies are just a series of frames (or pictures) that are displayed in a particular order.
Usually, when you see formats as (.mp4) it means that you have a set of images and a sound file tied together. Movies produced by the Map Viewer follow the same definition. The user is required to load the maps (which are going to be the images in the movie) wanted to be displayed and then configure the viewer main area as if it was the movie itself. Transformations (zoom, pan) are kept on the movie, as well as histogram curves, palettes for each images and transparency.
The Dinamica EGO Map Viewer now offers support for map aliases. By supporting map aliases, map viewer can assign meaningful information to what is being displayed.
The map viewer can be used as a command line tool to load “.egov” files and save the resulting “.png” image representing the stack of maps.
The command line syntax is:
“<Folder where Dinamica EGO is installed>\DinamicaMapViewer” <egov filename> <resulting png filename> [png width] [png height]
Parameter | Description |
---|---|
egov filename | The filename where the egov file is located. |
resulting png filename | The filename where the resulting png file will be located. |
png width | The width of the output png file. This parameter is optional. |
png height | The height of the output png file. This parameter is optional. |
Example:
“C:\Program Files\Dinamica EGO\DinamicaMapViewer” “c:\Maps\maps.egov” “c:\Outputs\result.png” 800 600
Congratulations, you have successfully completed this lesson!
☞ Next Lesson
☞ Back to Guidebook Start