Working with the geobrowser
Start the geobrowser by going to the directory where it was installed
and running the command
run_geobrowser.sh (Linux). The
geobrowser initially displays a map of the world based on a file in
the installation. (The screen captures show a smaller map area due to
the tutorial formatting requirements.)
Use Help > Help Contents to access the online documentation for the JViews Map Viewer sample application on which the geobrowser is based.
Figure 2. Initial screen when geobrowser started
Use File > Add Map Data to bring up a dialog to select the spatial data to be added to the map. The default selection is to access DB2 for Linux, UNIX, and Windows. Files of Type allows for the selection of an Informix or Netezza database connection or accessing data in shapefile format from the file system.
Fill in the appropriate DB2 connection information. You should use the
same user ID and password specified during the setup process
for running runGseDemo. If you are running on the same system
where DB2 is installed, the host name should be specified as
localhost. The default port is 50000. Click
Connect, which will display a list of
tables with a spatial column as shown below. Select all the tables and
Figure 3. DB2 connection dialog
To zoom in on the region of interest, click on the left side of the expand button in the Map Layers tab to show the list of tables loaded. Then select the REGIONS table and click the zoom button () on the tool bar, which will result in a map display like the following.
Figure 4. Customers in Kentucky
Other buttons on the toolbar () can be used for zooming in/out, panning, selecting an object, etc. Hovering the mouse over a button will pop up a description of the button.
The default symbology for the map will display all point objects as hollow green squares and polygons with a blue boundary. We want to highlight the customers in the flood zone as red filled diamonds and draw the flood zone polygons in red.
The symbology is controlled by the Dynamic Style Setting pane below the list of map layers. Select a map layer, and you are able to set color, labeling, marker symbol, and symbol size.
To highlight the customers in a flood zone, select HIGHRISKCUSTOMERS in the Map Layers tab, then click the color bar next to Point Color and select a red color from the palette. Click in the field next to Point Type and select Filled Diamond. Click in the field next to Point Size and change the size to 4. Now click in the field next to Labeling and select the NAME.
To highlight the flood zone polygons, select FLOODZONES in the Map Layers tab, then click on the color bar next to Line Color and select a red color from the palette.
To differentiate the office locations, select the OFFICES in the Map Layers tab, then click on the color bar next to Point Color and select a blue color from the palette. Click in the field next to Point Type and select Filled Square. Now click in the field next to Point Size and change the size to 4. If you zoom in, you should see something like the figure below.
Figure 5. Highlighted flood zone customers in Kentucky
All the information about the map you are working on can be saved and restored in a subsequent session. Use File > Save Map As to bring up a dialog to save a map as shown in the figure below.
Figure 6. Saving a map document
The following options are available in this dialog:
- Save Theme Only
- Selecting this will save the database connection information, the layers selected, and the associated symbology information. When the map document is reloaded, the database tables will be read to restore the map. If this option is not selected, all of the graphic information will be saved to the file so the map can be restored without a database connection. Not selecting this option can result in a very large file.
- Save as Binary
- If this is selected, the map document is stored in a binary representation. Otherwise, it is saved as a readable text file.
Save the map so you can use it again in the next section.