Table of Contents
Overview
Thematic mapping allows the display of data with aggregated numeric totals in iShare Maps or iShare GIS. The data may have been prepared using the Astun Geopivoting functions, but if not, must still meet the necessary requirements in terms of tabular structure, namely the presence of a column of a numeric data type representing the values you wish to display, and an unique field such as ogc_fid. See the Geopivoting topic for information on how to include these in your dataset.
Here we are showing a Street Crime thematic based on Anti Social behaviour
Installing the GPT Statistics component on your Data Share database
Before you can configure Thematic Mapping you need to have installed the GPT Statistics component from the AstunPGInstaller onto your Data Share database. Tick the box for GPT Statistics on the Install Options dialog.
Configuring your MapServer .MAP file - only required pre v5.6.0
Once the table has been created with the required structure, it can be configured as a layer in the MapServer map file. It is a PostGIS layer, which requires some additional parameters.
...
Since this layer will be displayed as a thematic layer in iShare Maps or iShare GIS, the styling will be handled dynamically. Simply include the basic styling for the type of layer you are configuring, such as an OUTLINECOLOR and WIDTH for a polygon e.g.
Filtering your Thematic Data
...
Code Block |
---|
DATA "wkb_geometry from (select * from civil_parishes where county=’SUUREY’SURREY_COUNTY’) as subquery using unique ogc_fid using srid=27700" |
e.g.
Note |
---|
If you wish to display this data as a normal (non-thematic) layer then you will need a separate entry in the map file. This will not have dynamic styling, so should be styled as you wish it to be displayed. |
...
For details on how to configure your Thematic Layer in Studio please refer to the to the following:
- V5.6.0 or greater - see Standard Layer Configuration to create your Layer and then Advanced Thematic & Geometry Options to configure the Thematics.
- Pre V5.6.0 - Thematic Layer Configuration
...
- .