Multivariate renderer


This document was published with and applies to ArcGIS 9.3.
A 10 version also exists. A 9.2 version also exists.
Purpose
This sample consists of a multivariate feature renderer that can represent multiple, independent data distributions on a single layer. The multivariate renderer is a powerful way to represent the relationship between two or more data distributions when multiple variables exist for the same geographic features (points, lines, or areas). Each data variable is assigned a unique graphical visual variable (e.g., size, shape, orientation), and the multivariate symbolization is built up from two or more of these. The implementation of this is that the multivariate renderer maintains references to several univariate ESRI feature renderers (SimpleRenderer, UniqueValueRenderer, ClassBreaksRenderer, or ProportionalSymbolRenderer).
 
For example, population and housing data may be available for city point data. You can assign a ClassBreaksRenderer to encode both of these variables and thus choose to use symbol color (its saturation/value components to be specific) to encode a variable for percent housing vacancy and use symbol size in points to represent a variable for total population. You could add a third variable to your symbolization, making it trivariate, if you have a categorical variable, perhaps that indicates the region where the city is located. This could be symbolized using the symbol shape or the hue component of color.
 
This sample also includes a multivariate feature renderer property page that allows the software user to build and assign a multivariate feature renderer to a layer in ArcMap. The design of both the renderer and property page takes advantage of the existing support in ArcMap for univariate feature rendering. To set up multivariate symbolization for a layer, first make several copies of the layer and set up each univariate symbolization. Then, use the multivariate renderer property page to create multivariate symbolization based on the univariate symbolizations.
 
The multivariate renderer is designed as a "super" feature renderer that manages a collection of multiple univariate feature renderers. The custom multivariate renderer keeps track of each constituent renderer and, on IFeatureRenderer::Draw, draws the multivariate symbology for each feature by combining symbology from each univariate renderer. Both the custom property page and custom renderer use Bertin's graphical as a fundamental design principle. Using the property page you can choose to encode a single variable using size, color, shape/pattern, or orientation. Size is useful for representing quantitative difference. The multivariate renderer uses a ClassBreaksRenderer for this.
 
You can separate color into hue, and saturation and value. Hue is what most people think of when they think of color and it is good for showing categorical difference. Saturation is the richness of a color, and value can be thought of as lightness and darkness. Both are good for showing quantitative difference, and they are combined together for the purposes of this renderer.
 
Shape and pattern are combined together as a single encoded graphical visual variable, which is useful for symbolizing categorical difference between features.
 
Orientation (rotation) of a symbol can be useful for symbolizing categorical difference or quantitative difference if the variable being represented has some true directionality (e.g., predominate wind direction measured at point features).

Development licensing Deployment licensing
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo

How to use

See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).

  1. Open the sample.
  2. Compile the sample to create its dll.
  3. Open ArcMap.
  4. Add a dataset to ArcMap that you want to draw with the multivariate renderer.
  5. Copy and paste the layer so that you have enough copies of the layer in your map to assign each univariate symbolization, as well as for the multivariate symbolization. Note: It may be useful to rename these layers so you can remember how each is symbolized.
  6. Set up each univariate symbolization using the Symbology tab in the Layer Properties dialog box. Do this so that each desired univariate symbolization is assigned to a separate layer in your map. Each layer points to the same underlying data. The extra layers are only used to set up the multivariate symbolization or to make changes. The layers can be disabled in the TOC after you have set up your multivariate symbolization.
  7. For the layer you want to symbolize with the multivariate renderer, click the Symbology tab in the Layer Properties dialog box and choose Multivariate Renderer to show the custom renderer property page that you will use to set up your renderer.
  8. Select the check boxes to enable rendering for the graphical visual variable that you want to use. For example, if you want to use shape and size, select the Shape/Pattern and Size check boxes.
  9. For each box checked, use the dropdown lists to select the layer whose univariate symbolization will be used for that graphical visual variable. For example, for Shape/Pattern select the layer symbolized with a UniqueValueRenderer with point symbols that are different shapes, line symbols with a different pattern, or fill symbols with a different fill pattern. For Size, select the layer symbolized with ClassBreaksRenderer or ProportionalSymbolRenderer that symbolizes features with different sized symbols.
  10. For orientation, a second dialog box opens where you can pick the field whose values will determine the orientation of the multivariate symbolization.
  11. When complete, click OK or Apply to add the multivariate renderer to your layer.



MultivariateRenderer.vb Class file with the implementation of the multivariate renderer
MultivariateRendPropPage.vb Class file with the implementation of the multivariate renderer property page
PropPageForm.vb Property page form
SecondaryForm.vb Host form for rotation dialog box
IMultivariateRenderer.vb Interface definition for custom interface IMultivariateRenderer
Download the VB.NET files
IMultivariateRenderer.cs Class file with the implementation of the multivariate renderer
MultivariateRendPropPage.cs Class file with the implementation of the multivariate renderer property page
PropPageForm.cs Property page form
SecondaryForm.cs Host form for rotation dialog box
IMultivariateRenderer.cs Interface definition for custom interface IMultivariateRenderer
Download the C# files

Download the files for all languages