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.

  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.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

cartography/RotationRendererSample.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic