ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Create Overpass

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Creates bridge parapets and polygon masks at line intersections to indicate overpasses.

Illustration

Illustration of the Create Overpass tool options
A yellow polygon mask is created from margin dimensions to obscure a blue below line feature where it crosses a red above line feature. Gray bridge parapet decorations with angled wing ticks are also created.

Usage

  • Intersecting line features symbolized with stroke representations as inputs are required.

  • The Input Above Features With Representations layer can be the same as the Input Below Features With Representations layer in the case of self-overlapping features. When input above and input below representations are the same, an SQL expression is required for further refinement of feature selection.

  • This tool is identical to the Create Underpass tool except that the Expression parameter selects from the Input Above Features With Representations parameter in this tool as well as from the Input Below Features With Representations parameter in the Create Underpass tool.

Syntax

arcpy.cartography.CreateOverpass(in_above_features, in_below_features, margin_along, margin_across, out_overpass_feature_class, out_mask_relationship_class, {where_clause}, {out_decoration_feature_class}, {wing_type}, {wing_tick_length})
ParameterExplanationData Type
in_above_features

The input line feature layer containing stroke representations that intersect—and will be symbolized as passing above—stroke representations in the Input Below Features With Representations parameter.

Layer
in_below_features

The input line feature layer containing stroke representations that intersect—and will be symbolized as passing below—stroke representations in the Input Above Features With Representations parameter. These features will be masked by the polygons created in the Output Overpass Feature Class parameter.

Layer
margin_along

Sets the length of the mask polygons along the Input Above Features With Representations parameter by specifying the distance in page units that the mask should extend beyond the width of the stroke symbol of the Input Below Features With Representations parameter. The Margin Along parameter must be specified, and it must be greater than or equal to zero. Choose a page unit (points, millimeters, and so on) for the margin; the default is points.

Linear Unit
margin_across

Sets the width of the mask polygons across the Input Above Features With Representations parameter by specifying the distance in page units that the mask should extend beyond the width of the stroke symbol of the Input Below Features With Representations parameter. The Margin Across parameter must be specified, and it must be greater than or equal to zero. Choose a page unit (points, millimeters, and so on) for the margin; the default is points.

Linear Unit
out_overpass_feature_class

The output feature class that will be created to store polygons to mask the Input Below Features With Representations parameter.

Feature Class
out_mask_relationship_class

The output relationship class that will be created to store links between overpass mask polygons and the lines of the Input Below Features With Representations parameter.

Relationship Class
where_clause
(Optional)

An SQL expression used to select a subset of features in the Input Above Features With Representations parameter.

Use quotation marks—for example, "MY_FIELD"—or if you're querying personal geodatabases, enclose fields in square brackets—for example, [MY_FIELD].

See SQL reference for query expressions used in ArcGIS for more information on SQL syntax.

SQL Expression
out_decoration_feature_class
(Optional)

The output line feature class that will be created to store parapet features.

Feature Class
wing_type
(Optional)

Specifies the wing style of the parapet features.

  • ANGLED —The wing tick of the parapet will be angled between the Input Above Features parameter and the Input Below Features parameter. This is the default.
  • PARALLEL —The wing tick of the overpass wing will be parallel to the Input Below Features parameter.
  • NONE —No wing ticks will be created on the parapets.
String
wing_tick_length
(Optional)

The length of the parapet wings in page units. The length must be greater than or equal to zero; the default length is 1. Choose a page unit (points, millimeters, and so on) for the length; the default is points. This parameter does not apply to the Wing Type value of NONE.

Linear Unit

Code sample

CreateOverpass example 1 (Python window)

The following Python window script demonstrates how to use the CreateOverpass function in immediate mode.

import arcpy
arcpy.env.workspace = "C:\data"
arcpy.env.referenceScale = "50000"
arcpy.CreateOverpass_cartography("roads.lyr", "railroads.lyr", "2 Points", "1 Points",
                                 "cartography.gdb/transportation/over_mask_fc",
                                 "cartography.gdb/transportation/over_mask_rc", "'Bridge_Category' = 3",
                                 "cartography.gdb/transportation/bridge", "ANGLED", "1 Points")
CreateOverpass example 2 (stand-alone script)

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

# Name: CreateOverpass_standalone_script.py
# Description: Creates a mask where one feature is visually
#              on top of another feature

# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
in_above_features = "roads.lyr"
in_below_features = "railroads.lyr"
margin_along = "2 Points"
margin_across = "1 Points"
out_overpass_feature_class = "cartography.gdb/trans/over_mask_fc"
out_mask_relationship_class = "cartography.gdb/trans/over_mask_rc"
where_clause = "'Bridge_Category' = 3"
out_decoration_feature_class = "cartography.gdb/trans/bridge"
wing_type = "ANGLED"
wing_tick_length = "1 Points"

# Execute Create Overpass
arcpy.CreateOverpass_cartography(in_above_features,
                                 in_below_features,
                                 margin_along,
                                 margin_across,
                                 out_overpass_feature_class,
                                 out_mask_relationship_class,
                                 where_clause,
                                 out_decoration_feature_class,
                                 wing_type,
                                 wing_tick_length)

Environments

  • Cartographic Coordinate System
  • Reference Scale

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Yes

Related topics

  • An overview of the Cartographic Refinement toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal