Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width70%

Introduction

Column
width30%

Exercises

Table of Contents
minLevel4
maxLevel4

Introduction

A workflow in Geocap is a way of combining datasets and actions or visualizations in sequence to produce visualizations, movements and powerpoint style 3D presentations. In this section we will have a look at one of the workflows provided with the Atlantis project and then we will create a workflow our self. It is up to you if you want to create a workflow from the Atlantis project or from the new project you built.

Exercises

Table of Contents
maxLevel3
minLevel3

 

Panel
borderStyle
borderColor#404040
bgColor#F0F0F0
borderWidth1
borderStyledashed
titleExercisedashed

Examine the workflows provided in the Atlantis project.

  1. Make sure the Atlantis project is open.
  2. In Geocap, click File - > Open - > FileWorkflow, and browse to the Atlantis project folder, then open the the sub-folder called workflow workflows.
  3. Double click on the file called Atlantis Basic Select Basic_Workflow.gwf to open it, or single click to highlight it and then click , Open. This will open the workflow below the project.
    Image Removed
    Atlantis Basic Workflow
  4. Examine the contents of the workflow items by clicking on the triangles next to the root folders.
  5. Click on the Go to first executable element  icon and then click on the Execute next element  icon. (This will initialize the basic display settings and nothing will appear in the display window yet)
  6. Click on the Execute next element  icon again and notice everything in the Base map folder will be displayed along with a short flight tour (animation).
  7. Continue clicking on the Execute next element Image Modified icon until you reach the end of the workflow and observe how different elements of the Atlantis project are displayed.

  8. Close the workflow by clicking Close

Tip

Note that the user may also execute each element one at a time by right clicking on the command and choosing Execute, see the image below.

Image Removed
Executing individual commands one by oneFollowing the steps above, open and examine the other workflows in the workflows folder.

 

Workflows are saved as single files on disk with file extension *.gwf, (Geocap Work Flow). It is a good idea to store them in a folder called workflows next to the db folder on disk. In the next exercises we will create a new empty workflow. 

Panel
borderColor#404040
bgColor#F0F0F0
borderWidth1
borderStyledashed
titleExerciseborderStyledashed

Create a new workflow

In this exercise we will create a workflow that displays seabed and land and some important lines from the project.

  • Click File -> New -> Workflow. Then a browser pops up.
    The workflow is saved as a single file on disk with file extension *.gwf, (Geocap Work Flow). A good idea may be to create a folder in your project called Workflows and put the workflow there.
  1. Press the New Element icon to create the first entry. That may also be achieved by a right-click New Element.
  2. Select the Display Image Removed command found in the Commands folder and click OK.
  3. Right-click the Display Image Removed command in the workflow and select Edit. Then this panel pops up:
    Image Removed
    The Display edit panel

In a workflow, you will need to browse in an object from the project. The command usually requires a dataset to do an action on (such as a type of display).

  1. Browse to the coastline folder under 1. Maritime lines, highlight The Kingdom of Atlantis and click OK.
  2. Choose the display settings you like (color, glue to surface or not, etc.) and click OK again.
  3. Right click the element in the workflow and choose Execute. Alternatively, click the Execute icon.
  4. Examine how your display looks and edit the command if necessary to achieve the results you want by right clicking on the command and choosing edit.
  5. In order to keep your workflow organized it is recommended to change the name of the newly added commands from Display to something more descriptive like, Display Coastline Yellow which is done by right clicking the command and choosing Rename.

Note that commands may be copied from Shared commands, Item commands and Schema commands and pasted into the workflow.

  1. Right click the Map sea command in the Toolbox and select Copy Image Removed. (It should be located under Schema Commands if you have selected a Seabed Surface.)
  2. Click the Paste Image Removed button in the workflow.
  3. Again you must edit it and browse your seabed surface into the panel.
  4. Remember to save the workflow by clicking Image RemovedGo to File > New > Workflow.
  5. Browse for workflow folder or create a new one.
  6. Give your workflow a name and click Save.
  7. The new empty workflow window will pop up below the project

 

We are now going to add different commands to our workflow. There are a number of ways to do this. You can turn on the recorder and start executing commands and they will end up in the workflow or you can copy commands from the Toolbox and paste them into the workflow. You can also add elements from the workflow toolbar.

Panel
borderColor#404040
bgColor#F0F0F0
borderWidth1
borderStyledashed
titleExercise

Build the workflow

  1. Select a dataset in your project that you want to display.
  2. In the Toolbox right click the display command you want to use in your workflow and select Image AddedCopy
  3. Click the Image Added button in the workflow. The command will now be opened in edit mode. 
  4. Check the settings and click OK
  5. Continue to add elements to your workflow by selecting a dataset and copying a command into the workflow.
Panel
borderColor#404040
bgColor#F0F0F0
borderWidth1
borderStyledashed
titleExercise

Execute the workflow

  1. Click the Image Added icon.
  2. Click the Image Addedicon to execute next element or the Image Added icon to execute all elements in the workflow.

 

A flight tour collects a series of camera positions and moves the camera smoothly through these positions. In order to create a camera position all you need to do is right click a folder and select New > Camera Position.

Panel
borderColor#404040
bgColor#F0F0F0
borderWidth1
borderStyledashed
titleExercise

Create a flight tour

  1. In your project, create a new generic folder called Cameras
  2. Zoom to an area you want to save as a camera position.
  3. Right click the folder Cameras and select New > Camera Position
  4. Repeat the last two steps to create more camera positions.
  5. Select the Cameras folder in your project.
  6. In the Toolbox go to Shared Commands > Visualization,right click Flight Tour and select Copy.
  7. Paste the command into your workflow. The command will open and it should have selected the Cameras folder as input. 
  8. Set the flight time between every camera position to 5 seconds and make sure Collect cameras in folder to smooth flight tour and Single flight tour is checked
  9. Click OK
  10. Select the Flight Tour command in the workflow and click theImage Addedicon to run the flight tour.
Tip

To update a camera position, set the view in the graphics window, right click the camera position and select Assign View.


Info

It is possible to group elements in a folder. Add folders by clicking New workflow element on the workflow toolbar and selecting Group under General .