Intersect 3D Line With Surface (3D Analyst)

License Level:BasicStandardAdvanced

Summary

Computes the geometric intersection of 3D line features and one or more surfaces to return the intersection as segmented line features and points.

Illustration

Intersect 3D Line with Surface graphic

Usage

Syntax

Intersect3DLineWithSurface_3d (in_surfaces, in_line_features, out_line_feature_class, {out_point_feature_class})
ParameterExplanationData Type
in_surfaces

Specify one or more input raster or TIN surfaces to construct the geometric intersections.

Raster Layer; TIN Layer
in_line_features

The input 3D line features.

Feature Layer
out_line_feature_class

The output line feature class that will contain a copy of the input lines split at the points of intersection.

Feature Class
out_point_feature_class
(Optional)

The optional point feature class that will contain the points of intersection.

Feature Class

Code Sample

Intersect3DLineWithSurface example 1 (Python window)

The following sample demonstrates the use of this tool in the Python window:

import arcpy
from arcpy import env

arcpy.CheckOutExtension('3D')
env.workspace = 'C:/data'
arcpy.Intersect3DLineWithSurface_3d('lines.shp', 'dtm_tin; elev.tif', 
                                  'intersect_lines.shp', 'intersect_pts.shp')
Intersect3DLineWithSurface example 2 (stand-alone script)

The following sample demonstrates the use of this tool in a stand-alone Python script:

import arcpy
from arcpy import env

arcpy.CheckOutExtension('3D')
env.workspace = 'C:/data'
arcpy.Intersect3DLineWithSurface_3d('lines.shp', 'dtm_tin; elev.tif', 
                                  'intersect_lines.shp', 'intersect_pts.shp')

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires 3D Analyst
ArcGIS for Desktop Standard: Requires 3D Analyst
ArcGIS for Desktop Advanced: Requires 3D Analyst
3/7/2014