Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Cartography toolbox > Symbolization Refinement toolset > Tools

Calculate Line Caps (Cartography) (ArcInfo only)

Release 9.2
Last modified July 13, 2007
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Calculates the cap type (ending style) for double-line symbols in the input representations.


Illustration

Calculate Line Caps

Usage tips

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.

  • BUTT — specifies to end the double-line symbol exactly where the line ends. This is the default.
  • SQUARE — specifies to close the double-line symbol with a squared shape. The symbol extends past the endpoint of the line by half of the symbol width.

String
{CASED_LINE_DANGLE | TRUE_DANGLE}

Specifies the dangle option for line cap calculation.

  • CASED_LINE_DANGLE — Specifies to calculate not only true dangles but also where a cased-line symbol meets a single-line symbol. This is the default.
  • TRUE_DANGLE — Specifies to calculate true dangles only.

String
Data types for geoprocessing tool parameters


Command line example

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.

  • BUTT — specifies to end the double-line symbol exactly where the line ends. This is the default.
  • SQUARE — specifies to close the double-line symbol with a squared shape. The symbol extends past the endpoint of the line by half of the symbol width.

String
dangle_option (Optional)

Specifies the dangle option for line cap calculation.

  • CASED_LINE_DANGLE — Specifies to calculate not only true dangles but also where a cased-line symbol meets a single-line symbol. This is the default.
  • TRUE_DANGLE — Specifies to calculate true dangles only.

String

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:\Workspace.mdb"
gp.toolbox = "cartography"
gp.CalculateLineCaps("roads.lyr", "BUTT")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.