Rotation renderer


Purpose
This sample demonstrates how to turn 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 velocity. The wind.shp shapefile is used, and it must be the first layer in the focus map. The following fields are used from the shapefile:
  • Velocity—Specifies the size of the arrow marker
  • Direction—Specifies the rotation in degrees of the arrow marker

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Run the sample application. Marker symbols are turned into arrows where the size represents velocity and the arrow is rotated to reflect a wind direction.


Download the files for Java
cartography/RotationRendererSample.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView