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
arcpy.defense.GenerateRangeFans(in_features, out_range_fan_feature_class, inner_radius, outer_radius, horizontal_start_angle, horizontal_end_angle, {distance_units}, {angle_units})
Parameter | Explanation | Data 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.
| String |
angle_units (Optional) | Specifies the angular unit of measurement for start and end angles.
| String |
Code sample
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")
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
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes