Generate Range Fans (Defense)

Summary

Creates range fans originating from a starting point given a horizontal start angle, horizontal end angle, minimum distance, and maximum distance.

Usage

  • Range fans are created in a clockwise direction from the Horizontal Start Angle to the Horizontal End Angle.

Syntax

GenerateRangeFans(in_features, out_range_fan_feature_class, inner_radius, outer_radius, horizontal_start_angle, horizontal_end_angle, {distance_units}, {angle_units})
ParameterExplanationData Type
in_features

The input point feature set that identifies the origin points of the range fans. The input must have at least one point.

Feature Set
out_range_fan_feature_class

The feature class that will contain the output range fan features.

Feature Class
inner_radius

The distance from the origin point to the start of the range fan.

Double
outer_radius

The distance from the origin point to the end of the range fan.

Double
horizontal_start_angle

The angle from the origin point to the start of the range fan.

Double
horizontal_end_angle

The angle from the origin point to the end of the range fan.

Double
distance_units
(Optional)

Specifies the linear unit of measurement for minimum and maximum distance.

  • METERSThe unit will be meters. This is the default.
  • KILOMETERSThe unit will be kilometers.
  • MILESThe unit will be miles.
  • NAUTICAL_MILESThe unit will be nautical miles.
  • FEETThe unit will be feet.
  • US_SURVEY_FEETThe unit will be U.S. survey feet.
String
angle_units
(Optional)

Specifies the angular unit of measurement for start and end angles.

  • DEGREESThe angle will be degrees. This is the default.
  • MILSThe angle will be mils.
  • RADSThe angle will be radians.
  • GRADSThe angle will be gradians.
String

Code sample

GenerateRangeFans example 1 (Python window)

The following Python window script demonstrates how to use the GenerateRangeFans function.

import arcpy
arcpy.env.workspace = r"C:\Data.gdb"
arcpy.GenerateRangeFans_defense("RLOS_Observers",
                                "Range_Fan_out",
                                100, 2000, 45, 180,
                                "METERS",
                                "DEGREES")
GenerateRangeFans example 2 (stand-alone script)

The following example uses the GenerateRangeRings function in an example workflow script.

# Description: Generate range rings around active airports

# Import system modules
import arcpy

# Set environment settings
arcpy.env.workspace = r"C:\Data.gdb"
arcpy.env.overwriteOutput = True

# Select points from airports from input
airports = "Airports"
active = "Active_Airports"
whereClause = "Active = 'Yes'"
arcpy.Select_analysis(airports, active, whereClause)

# Generate Range Fans from selected airports
outputFans = "Range_Fans"
distType = "KILOMETERS"
angleUnits = "DEGREES"
arcpy.GenerateRangeFans_defense(active,
                                outputFans,
                                10,
                                100,
                                90,
                                180,
                                distType,
                                angleUnits)

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics