To use Cognos product documentation, you must enable JavaScript in your browser.

Maps

Report Studio provides a set of maps that you can use to represent tabular data in a spatial context. For example, on a map of the world, countries can be colored to represent the level of revenue. To edit the maps or create additional maps, use Map Manager. For more information, see Edit a Map.

Maps are most often used to show geographical areas, but they can be used to show other spatial information, such as a floor plan in a building, seats in an airplane, or parts of the human body.

A map in Cognos 8 consists of a collection of layers. Each layer contains different information and acts like a transparency that is placed on top of the map. Each layer adds more information to the map. For example a map of the world may contain information related to countries on one layer and information related to cities on another level.

Report Studio maps provide the following three types of layers:

Note: If you intend to create CSV or XML output from your map, use only a point layer or a region layer. CSV and XML do not support the simultaneous use of both layers in the same map. Only one layer will be rendered in the output.

Parts of a Map Report

The following shows the parts of a map as they appear in the Report Studio interface.

Example - Create a Map Report

You are a report author at The Great Outdoors Company. You are asked to show how revenue for the company is distributed throughout the world. This information can be shown in tabular format using a list report, but a map will create a more meaningful presentation. You decide to create a report that contains a map of the world showing the distribution of revenue by country.

Steps
  1. In Cognos Connection, go to the GO Data Warehouse (query) package.

  2. Click the Launch link in the upper right corner of the page, and then click Report Studio.

    Report Studio starts.

  3. In the Welcome dialog box, click Create a new report or template.

  4. In the New dialog box, click Map and click OK.

  5. In the Choose Map dialog box, in the Maps pane, expand the folder World and click World.

  6. In the Region Layers box, click Countries + Territories.

  7. In the Point Layers box, click None.

  8. In the Display Layers box, click Oceans.

    Tip: You can select multiple display layers or deselect a display layer by pressing Ctrl+right-click.

  9. Click OK.

    Tip: You can return to the Choose Map dialog box at any time by double-clicking the map background.

  10. Click the run button on the toolbar, and view the map.

Example - Define Data Values for the Region Layer

The map that you created in the previous topic is not yet linked to a data source. You will now specify the data values from your data source that will determine the color of each region.

Steps
  1. In the Insertable Objects pane, expand Sales and Marketing (query), Sales (query) and Sales fact.

  2. Drag Revenue to the Color drop zone.

  3. Expand Employee by organization.

  4. Drag Country to the Location drop zone.

  5. Select the map object by clicking the map background.

  6. Run the report.

Ignore Data with no Features

You can specify that you do not require a match for each item in the data source. The report can then run successfully even if the map does not contain a match for each item in the data source for a particular object.

For example, an error message appears and the report does not run if you are using cities in the point layer and a city in the data source does not have the same name in the map file. If you ignore data with no features, then the data that has a match in the map file will be plotted and the data that does not have a match will be omitted.

Steps
  1. Click the background of the map.

  2. In the Data section of the Properties pane, click the Ignore Data with No Features property.

  3. Set the value to Yes.

Match Data Values to Names in the Map File

If the Ignore Data with No Features property is set to No, then each object that is called from the data source must have a matching label in the specified layer of the map file. For example, if your data source has a country named United States and the layer in the map file labels the same country USA, then there is a mismatch that must be corrected. Report Studio only makes you aware of a mismatch if each object in your data source does not have a corresponding label in the map file. If there are extra labels in the map file that do not have a match in the data source, the report will run without an error message.

A mismatch between your data and the map file must be corrected by the report author. It can not be corrected by a consumer of the map report at run time. There are two ways to correct a mismatch between your data and the labels in the map files. You can use Map Manager to edit the labels in the layers of the map file, or you can use the dictionary property to create an alias for each mismatched object. When you use the dictionary property, it resolves the mismatch only for a single report, and is not shared with other reports. If you intend to continue using a map with the same data source, it is best to edit the map in Map Manager so that the labels match the objects in your data source.

For information about using Map Manager, see the Map Manager Installation and User Guide.

Steps to Create an Alias
  1. Select the map object.

    The Title Bar of the Properties pane now shows the word Map.

  2. In the General section of the Properties pane, click Dictionary, then click the ellipsis (...) button.

  3. Click the new button .

  4. In the Dictionary Entry dialog box, click Search.

  5. In the Search string box, type a word or part of a word that you want to search the map file for.

    For example, if you are searching for United States, type in part or all of the name.

  6. In the Search map layer box, click the layer that you want to search, and click Search.

  7. In the Matching features box, click the label that you want to match your data source to and click OK.

  8. In the Alias box, type the name as it appears in the data source and click OK.

    For example, if the country in your data source is named USA, type USA as the alias.

    To find out the name for the objects in your data source, run a list report. For example, you can run a list report to show the names of all the countries in your data source. For more information see List Reports.

  9. Click OK.

Define Data Values for the Point Layer

The Point layer in a map is used to visually represent data for point locations, such as cities or sales outlets. Both the color and size of points can be based on data from your data source.

Steps to Set the Color and Size of Points
  1. Open the Choose Map dialog box:

  2. In the Point Layers box, select the layer containing the points that you want shown on the map.

    For example, on a map of the world you may want the points to represent cities.

  3. Click OK.

  4. In the Insertable Objects pane, drag an object to the Color drop zone in the Point Layer.

    For example, to have the color of the point based on revenue, drag Revenue from the Insertable Objects pane to the Color drop zone.

  5. In the Insertable Objects pane, drag an object to the Size drop zone in the Point Layer.

Steps to Set the Location of Points
  1. In the Insertable Objects pane, drag an object to the Location drop zone in the Point Layer.

    The object must be supported in the map file as a point location. For example, in the World sample map, city is supported as a point location, but country is not.

  2. If you need to refine the location, drag an object to the Refine Location drop zone.

    Use this drop zone when there is more than one location with the same name. For example, if you try to run a report with cities in the point layer, and there is more than one city in your data source with the same name, the report does not run. An error message indicates that there are cities in your data source with duplicate names. You can differentiate the cities by using the data object Region to refine the location.

Add Another Color to the Region or Point Layer

You can add colors for regions or points and specify values to determine when those colors are shown.

Steps
  1. In the report, click the Region Layer or Point Layer.

  2. In the Color & Background section of the Properties pane, click Palette, and then click the ellipsis (...) button.

  3. Click the new button , and click Color.

  4. A new color is added to the list of colors.

  5. With the new color selected, click Color in the right pane of the dialog box, and select a color.

  6. Change the percentage boundaries for the colors.

  7. Click OK.

Specify the Size of Points

The size of the points used on a map is defined in the Properties pane.

Steps
  1. In the point layer, click the measure in the Size drop zone.

    For example, if the measure is Revenue, click it.

  2. In the General section of the Properties pane, click Minimum Size, and select or type the minimum point size for points on the map.

  3. Click Maximum Size, and select or type the maximum point size for points on the map.

Add Titles, Subtitles, Footers, and Axis Title

You can add map titles, subtitles, and footers. In addition, the axis title is shown below the map. By default, the axis title shows the name of the map specified in the map file.

Steps
  1. Select the map object.

  2. In the Chart Titles section of the Properties pane, click the Title, Subtitle, Footer, or Axis Title property and click Show.

  3. Double-click in the box that appears on the report and type the text that you want.

    By default, the axis title uses the name of the map.

Add Legend Titles

There are legend titles for the entire legend, for the color of the regions, for the color of the points, and for the size of the points.

Steps to Change the Legend Title for the Entire Map
  1. If the legend title is not showing, click the legend icon . In the General section of the Properties pane, set the Legend Title to Show.

  2. In the report, double-click the legend title and type the title you want.

Steps to Change the Legend Title for the Region Color, Point Color, or Point Size

Add a Note to a Map

You can add one or more notes, determine their position in the map report, and specify borders around notes.

Steps to Add a Note
  1. Select the map object.

  2. In the Chart Annotations section of the Properties pane, click Notes, and then click the ellipsis (...) button.

  3. Click the new button , and click OK.

    A note icon with the words New Note appears in the report.

  4. Click New Note next to the note icon .

  5. In the Text Source section of the Properties pane, click the Text property, and then click the ellipsis (...) button.

  6. Type the text that you want to appear in the note and click OK.

Steps to Position a Note and Add a Border
  1. In the report, click the note icon .

  2. In the Positioning section of the Properties pane, type values to specify the bottom position, left position, height, and width for the note.

    The location of the note is defined by the number of pixels.

  3. Use the Note Border property to specify a border around the note.

  4. Run the report to view the note.

    If necessary, change the position again.

Customize a Map

When you select an element in a map, you can view its properties in the Properties pane. Some properties are dependent on the existence of other properties.

If you are familiar with using conditional variables, you can customize the map to change appearance or provide information in response to expressions or conditions.

When you change a map property, you usually do not see the change until you run the report. Changes to the properties of labels and titles are reflected immediately.

These are some of the properties you can change in maps. These properties are available when you select the map object, unless specified otherwise in the Action to perform in the Properties pane column.

Goal

Action to perform in the Properties pane

Hide or show the title, subtitle, footer, or axis title

Under Chart Titles, change the Title, Subtitle, Footer, or Axis Title property.

Hide or show the legend

Under Chart Annotations, change the Legend property.

Hide or show map labels

Select the region or point layer. Under Chart Labels, change the Labels property.

Hide or show values on the map

Select the region or points layer. Under Chart Labels, change the Values property.

Hide or show the border around the legend

Select the legend icon. Under Box, change the Borders property.

Change the border around the map object

Under Box, change the Border property.

Hide or show the tooltips

Note: Some versions of Acrobat Reader do not support tooltips.

Under Chart Labels, change the Tooltips property.

Change the amount of white space around the map

Under Box, change the Padding or Margin property.

Change the default colors for all map elements

Under Color & Background, change the Background Color, Foreground Color, or Fill Effects property.

Change the font and the alignment of text

Under Font & Text, change the Font or Relative Alignment property.

Resize the map

Under Positioning, change the Size & Overflow property.

Change the font for the legend

Select the legend icon. Under Font & Text, change the Font property.

Change the format of values in the legend

Select the value in the region or point layer. Under Data, change the Data Format property.

Steps
  1. Select the map object or map element that you want to change:

    Tip: To cancel a selection, press the Esc key.

  2. In the Properties pane, click the property you want, and then make the desired changes.

    An ellipsis (...) button indicates that a dialog box provides further options.

    You may have to scroll to see all the properties.

Drill Through to Another Report From a Map

You can link regions or points on a map to another report. For example, on a map of the world, you can specify that when you click on China, a map of China opens.

Steps to Set Up a Filter in the Target Report
  1. Open the target report.

  2. From the Data menu, click Filters.

  3. On the Detail Filters tab, click the add button .

  4. In the Available Components box, click the source or Data Items tab to select the data item you want to use.

    For example, if you want the target report to open when Canada is clicked in the source report, expand Countries and double-click Country.

  5. In the Expression Definition box, type an operator after the data item or select an operator from the Functions tab and then enter a value.

    For example, if you want the report to open when Canada is clicked in the source report, the expression would be as follows:

    [Country]='Canada', where [Country] is the name of the data item in the package.

  6. Save the target report.

Steps to Set Up a Drill-Through Link in the Source Report
  1. Open the source report.

  2. Select the region layer or the point layer.

  3. In the Data section of the Properties pane, click Map Drills, and then click the ellipsis (...) button.

  4. In the Map Drills dialog box, click the new button.

  5. In the Search String box, type the name of the feature you want to use for the drill-through link, select it from Matching Features box, then click OK.

    For example, if you want a report to open when you click on Canada, search on all or part of the word Canada then select Canada.

  6. In the Drill-Through Definitions dialog box, click the new button .

  7. Click the ellipsis (...) button beside the Report box, and select the target report.

  8. Click OK.

  9. Run the report.

When you click the selected feature in the source report, the target report will open.

Edit a Map

Administrators and modelers use a Windows utility named Map Manager to import maps and update labels for maps in Report Studio. For map features such as country and city names, administrators and modelers can define alternative names to provide multilingual versions of text that appears on the map.

With Map Manager you can edit the labels in maps to be consistent with the object names in your data base.

For instructions, see the Map Manager Installation and User Guide.

Additional Maps

Additional maps are available from the Cognos Global Customer Services Web site. Much of the mapping data on the Web site is derived from MapInfo Corporation, the Cognos preferred provider for location intelligence. MapInfo provides a wide variety of global data including

The Cognos Global Customer Services Web site provides a list of data providers and descriptions of the map data that Cognos provides as part of Cognos 8.

Location Intelligence

Sophisticated mapping functionality, known as location intelligence, can be used for a broad range of business applications that extend the mapping capability of Cognos 8. MapInfo provides solutions that can be directly integrated with Cognos 8. These include the ability to dynamically create geographic filters and custom areas for aggregating data for ad-hoc analysis. Examples of business applications of location intelligence are listed in the following table.

Business applicationBenefits
Target marketingLearn who your best clients are and find more like them.
Network optimization and site location analysisPut stores near your customers and look for gaps in geographical coverage.
Routing and work force optimizationReduce the number of trucks you need and make your drivers more efficient.
e-governmentProvide citizens with self-service opportunities.
Sales territory creationCreate balanced sales territories.
Economic developmentPlan the development of your community.
Communications network planningAvoid costly mistakes by putting cell towers in the right locations. Identify the locations of clients in your service area.

You can contact MapInfo for both data and location intelligence solutions through their Web site: www.mapinfo.com.