Align Marker To Stroke Or Fill (Cartography)

Summary

Align the representation marker symbols of a point feature class to the nearest stroke or fill representation symbols in a line or polygon feature class within a specified search distance.

Illustration

Illustration of aligning markers to stroke
Align markers to stroke with different options

Usage

Syntax

AlignMarkerToStrokeOrFill_cartography (in_point_features, in_line_or_polygon_features, search_distance, {marker_orientation})
ParameterExplanationData Type
in_point_features

The input point feature layer containing marker representations.

Layer
in_line_or_polygon_features

The input line or polygon feature layer containing stroke or fill representations.

Layer
search_distance

The search distance from graphical marker edge to graphical stroke edge. A distance greater than or equal to zero must be specified.

Linear unit
marker_orientation
(Optional)

Specifies the representation marker orientation relative to the stroke or fill edge.

  • PERPENDICULARaligns representation markers perpendicularly to the stroke or fill edge. This is the default.
  • PARALLELaligns representation markers parallel to the stroke or fill edge.
String

Code Sample

AlignMarkerToStrokeOrFill tool Example (Python Window)

This stand-alone script shows an example of using the AlignMarkerToStrokeOrFill tool.

import arcpy
from arcpy import env
env.workspace = "C:/data"
env.referenceScale = "50000"
arcpy.AlignMarkerToStrokeOrFill_cartography("buildings.lyr", "roads.lyr", "2 Points", "PERPENDICULAR")
AlignMarkerToStrokeOrFill tool Example (Stand-alone python script)

This stand-alone script shows an example of using the AlignMarkerToStrokeOrFilltool.

# Name: AlignMarkerToStrokeOrFill_standalone_script.py
# Description: Aligns representation markers to nearby line or polygon features symbolized with representations
 
# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"
env.referenceScale = "50000"

# Set local variables
in_point_features = "buildings.lyr"
in_line_or_polygon_features = "roads.lyr"
search_distance = "2 Points"
marker_orientation = "PERPENDICULAR"

# Execute Align Marker To Stroke Or Fill
arcpy.AlignMarkerToStrokeOrFill_cartography(in_point_features, in_line_or_polygon_features, search_distance, marker_orientation)

Environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: No
ArcInfo: Yes

11/11/2011