ActiveReports 9 > ActiveReports User Guide > How To > Page Report/RDL Report How To > Work with Report Controls and Data Regions > Work with Map > Work with Data |
The Map data region uses the following two types of data:
Spatial data is a set of coordinates that defines a map element. Each map layer must have spatial data of one of the following types - a polygon, a line, or a point.
Spatial data can be either embedded in a map or can be linked to a map layer. The only difference between the two is that while having the spatial data embedded in a map, there is no separate file to locate or to keep track of when you move the report between projects or machines.
Embedded Spatial Data:
Embedded spatial data can refer to the following:
External Spatial Data:
External spatial data can refer to the following:
ActiveReports provide numerous ways to add spatial data to the map. You can either use the Map Wizard and add data from an ESRI shapefile or use the Map Layer Data Properties dialog for using advance options. You can also add spatial data from the Properties Window.
To add spatial data using Map Wizard
This option automatically imports the spatial data stored in the shapefile and adds a related layer to the map control.
To add spatial data using the Map Layer Data Properties dialog
The Map Layer Data Properties dialog provide the following advance options to add spatial data. For more information on Map Layer Data Properties dialog, see Map.
Embedded : Use this option where you want to add spatial data from an ESRI file along with an additional option of adding custom spatial data fields if required.
To add Spatial data from an ESRI file using the Embedded option
Note : In order to apply the new spatial data field on a layer, you must provide its value for each map layer element like polygons, points or lines in the added map layer Designer Collection Editor dialog. |
Linked : Use this option when you just want to add spatial data from an ESRI shapefile without any additional modifications or additions .
To add Spatial data from an ESRI file using the Linked option
Dataset : Use this option when you have a dataset that stores a spatial data field to provide spatial data to the Map. You can directly use the data fields from the dataset to display data on a map layer without setting the match fields for analytical data. Therefore, it also provides you an additional option of having different dataset for analytical data and spatial data respectively.
To add Spatial data from a Dataset
Caution: Simply type the name of the dataset field that contains spatial data. For example, enter value as StateName, not as =[StateName]. |
Analytical : Use this option when you want to use the spatial data field from the same dataset that you may use for adding Analytical data to the layer. For using this option you need to first set the dataset for analytical data and then use the spatial data field from the dataset to provide spatial data to the map layer.
To add spatial data from Analytical data
Configure Analytical data for the Map control. See the dropdown section below to learn adding Analytical data.
Note : Once the Analytical data has been set, the Analytical option on the General page of the Map Layer Data Properties dialog becomes active. |
Caution: In Field name, enter the data field name as =[StateName], not as StateName. |
To add spatial data using Properties Window
These steps assume that you have a Map control containing at least one map data layer placed on the design surface. To learn how to add a layer to the Map control, see Use Layers.
Note: The specified location must contain the shape format (.shp) and attribute format (.dbf) files. |
Analytical data is the data that you want to visualize on the map, for example, tourist attractions in a city or product sales by region. For analytical data, you can associate it with map elements by indicating match fields in the Match box of the Map Layer Data Properties dialog. You can use one or more fields in the Match box of the Map Layer Data Properties dialog; for each spatial data field you must indicate a unique analytical data field. This data is optional.
You can get analytical data from the following types of data sources.
To add Analytical Data to the Map control
Use the following steps to add analytical data to the map. These steps assume that you have added a page layout template to your report and have a data connection in place. See Adding an ActiveReport to a Project and Connect to a Data Source for further information.
Note: It is necessary to set match fields if you want to use a spatial data field from analytical data, or if you want to visualize analytical data on the map layer. Match fields enable the report processor to build a relationship between the analytical data and the spatial data. |