Calculate Line Caps (Cartography) (ArcInfo only) |
|
Release 9.2
Last modified July 13, 2007 |
![]() ![]() ![]() Print all topics in : "Tools" |
Calculates the cap type (ending style) for double-line symbols in the input representations.
Illustration
Usage tips
The line cap type defines how the ends of line segments are drawn using a double-line symbol. By default a round line cap will be used, meaning the symbol is terminated with a semicircle centered at the line endpoint and having a radius equal to the line symbol width or thickness. You can use this tool to change the cap type to BUTT or SQUARE. For BUTT caps, the symbol ends where line endpoints end. For SQUARE caps, the double-line symbol extends past the endpoint of the line by half of the symbol width and close with a squared shape.
The calculated cap types will be stored as representation property overrides. To change back to round caps, you can just remove the representation property overrides using the Remove Override tool.
The dangle options are very specific. The TRUE_DANGLE means the end of a linear feature, for example, the dead-end of a road. When this option is used, the tool will calculate line caps for true dangles only. The CASED_LINE_DANGLE is where a linear feature still continues, but the representation changes from a double-line or cased-line symbol to a single-line symbol. When this option is used, the tool will calculate line caps for both true dangles and cased-line dangles.
Command line syntax
An overview of the Command Line window
CalculateLineCaps_cartography <in_features> {BUTT | SQUARE} {CASED_LINE_DANGLE | TRUE_DANGLE}
Parameter | Explanation | Data Type |
<in_features> |
The input feature layer containing line representations. |
Layer |
{BUTT | SQUARE} |
Specifies the cap type for double-line representation symbol.
|
String |
{CASED_LINE_DANGLE | TRUE_DANGLE} |
Specifies the dangle option for line cap calculation.
|
String |
CalculateLineCaps_cartography c:\workspace.mdb\roads.lyr BUTT
Scripting syntax
About getting started with writing geoprocessing scripts
CalculateLineCaps_cartography (in_features, cap_type, dangle_option)
Parameter | Explanation | Data Type |
in_features (Required) |
The input feature layer containing line representations. |
Layer |
cap_type (Optional) |
Specifies the cap type for double-line representation symbol.
|
String |
dangle_option (Optional) |
Specifies the dangle option for line cap calculation.
|
String |
import arcgisscripting gp = arcgisscripting.create() gp.workspace = "c:\Workspace.mdb" gp.toolbox = "cartography" gp.CalculateLineCaps("roads.lyr", "BUTT")