This sample turns marker symbols into arrows where the size represents velocity
and the arrow is rotated to reflect a wind direction.
A ProportionalSymbolRenderer is used with additional settings in the
IRotationRenderer interface to display arrow markers showing wind direction and
The shape file "wind.shp" is used and this must be the first layer in the focus map.
Two fields are used from the shape file:
- Velocity specifies the size of the arrow marker
- Direction specifies the rotation in degrees of the arrow marker
How to use:
Steps for adding the sample in as a VBA module
From ArcMap launch VBA through Tools/Macros/Visual Basic Editor
From VBA load in the module "IRotationRenderer.bas" through File/Import File ...
Return to ArcMap and add in the required data through File/Add Data. The shape file "...\arcexe83\ArcObjects Developer Kit\Samples\Data\Wind\wind.shp" must be loaded
and placed as the first layer in the table of contents. Additional background data is also useful, for example "...\arcexe83\ArcObjects Developer Kit\Samples\Data\Usa\states.shp".
To execute the VBA sample, select Tools/Macros/Macros then run "setRotationRenderer"
Shape file "wind.shp" loaded as the first layer in a map
||VBA module file with code to setup proportional symbol renderer with rotation renderer interface