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

Flip Line

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

Summary

Reverses the from-to direction of line features.

You can view the orientation of line features by symbolizing line features with arrowheads.

Usage

    Caution:

    This tool modifies the input data. See Tools that do not create output datasets for more information and strategies to avoid undesired data changes.

  • Direction-dependent attributes, such as address ranges, are not flipped—only the geometry is flipped. For example, suppose a line feature has an LF-ADD attribute ('left from address') of 100 and an LT-ADD ('left-to address') of 198. These values will not change if the line is flipped.

  • When input is a feature layer with a selection, only selected features will be modified.

Syntax

arcpy.edit.FlipLine(in_features)
ParameterExplanationData Type
in_features

The input line feature class or layer.

Feature Layer

Derived Output

NameExplanationData Type
out_feature_class

The updated input features.

Feature Class

Code sample

FlipLine example 1 (Python window)

Shows, within the Python window, how to use Python command to flip lines.

import arcpy
arcpy.FlipLine_edit("C:/data/project.gdb/streams")
FlipLine example 2 (stand-alone script)

This example shows how to use Python stand-alone script to do in-place editing.

# Name: Flipline_Example.py
# Description: Flip line features

import arcpy
arcpy.env.workspace = "C:/data/project.gdb"

inFeatures = "streams"

arcpy.FlipLine_edit(inFeatures)

Environments

  • Current Workspace

Licensing information

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

Related topics

  • An overview of the Editing toolbox

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