Rotate Aviation Features (Aviation)

获得 Aviation Charting 许可后可用。

摘要

Aligns features to a grid or to the page.

Using the Rotate Aviation Features tool, you can automate the rotation of point and annotation features on a chart to make them easier to read.

使用情况

  • Target point layers must have a CARTOANGLE_VAL field, which will be calculated by the tool to set the desired rotation. You can also manually edit the field to change the rotation of an aviation feature.

    注:

    To view the tool results, you must set the Symbology 符号系统 value for the target point layer.

    On the Vary symbology by attribute tab 按属性变更符号系统, expand Rotation, and set Field to CartoAngle_Val and Rotation style to Geographic.

    Vary symbology by attribute tab

  • Target annotation layers will be rotated by calculating their Angle field (the default) or the angle information in their Element BLOB field.

  • The Input Map parameter value must have a projected coordinate system.

参数

标注说明数据类型
Input Map

The map containing aviation features.

Map
Target Point or Annotation Layers

The point or annotation feature layers that will be rotated.

String
Rotate Option
(可选)

Specifies how the features will be rotated.

  • Rotate to the map's gridThe features will be rotated to the map's grid. This is the default.
  • Rotate to the top of the pageThe features will be rotated to the top of the page.
  • Rotate to the left of the pageThe features will be rotated to the left side of the page.
  • Rotate to the bottom of the pageThe features will be rotated to the bottom of the page.
  • Rotate to the right of the pageThe features will be rotated to the right side of the page.
String

派生输出

标注说明数据类型
Updated Layers

The feature layer with updated rotation values.

Feature Layer

arcpy.aviation.RotateAviationFeatures(in_map, target_layers, {rotate_option})
名称说明数据类型
in_map

The map containing aviation features.

Map
target_layers
[target_layers,...]

The point or annotation feature layers that will be rotated.

String
rotate_option
(可选)

Specifies how the features will be rotated.

  • ROTATE_TO_GRIDThe features will be rotated to the map's grid. This is the default.
  • ROTATE_TO_PAGE_TOPThe features will be rotated to the top of the page.
  • ROTATE_TO_PAGE_LEFTThe features will be rotated to the left side of the page.
  • ROTATE_TO_PAGE_BOTTOMThe features will be rotated to the bottom of the page.
  • ROTATE_TO_PAGE_RIGHTThe features will be rotated to the right side of the page.
String

派生输出

名称说明数据类型
updated_layers

The feature layer with updated rotation values.

Feature Layer

代码示例

RotateAviationFeatures example (stand-alone script)

The following stand-alone script demonstrates how to use the RotateAviationFeatures function to rotate features on a navigation chart.

# Name: RotateAviationFeatures_example.py

# Description: ArcGIS geoprocessing tool that automates
# the rotation of aviation features on a navigational chart

import arcpy

# Check out the Aeronautical extension
arcpy.CheckOutExtension("Aeronautical")

# Set the environment
arcpy.env.workspace = r"D:\Data\data.gdb"

# Tool parameters
input_map = "MyMap"
target_point_or_annotation_layers = ["ADHP_C", "NavaidComponent_C"]
rotate_option = "ROTATE_TO_GRID"

# Call the RotateAviationFeatures function
arcpy.aviation.RotateAviationFeatures(input_map, target_point_or_annotation_layers, rotate_option)

# Check in the aeronautical extension
arcpy.CheckInExtension("Aeronautical")

环境

此工具不使用任何地理处理环境。

许可信息

  • Basic: 否
  • Standard: 需要 ArcGIS Aviation Charting
  • Advanced: 需要 ArcGIS Aviation Charting

相关主题