Intervisibility (3D Analyst)

License Level:BasicStandardAdvanced

Summary

Determines the visibility of sight lines through potential obstructions. The potential obstructions can be any combination of rasters, TINs, multipatches, and extruded polygons or lines.

Usage

Syntax

Intervisibility_3d (sight_lines, obstructions, {visible_field})
ParameterExplanationData Type
sight_lines

The 3D sight lines.

Feature Layer
obstructions
[obstructions,...]

One or more feature classes and/or surfaces that may obstruct the sight lines.

Feature Layer, Raster Layer, TIN Layer
visible_field
(Optional)

Name of the field that will store the visibility results. A resulting value of 0 indicates that the sight line's start and end points are not visible to one another. A value of 1 indicates that the sight line's start and end points are visible to one another. The default field name is VISIBLE.

String

Code Sample

Intervisibility example 1 (Python window)

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

arcpy.CheckOutExtension("3D")
arcpy.env.workspace = "C:/data"
arcpy.Intervisibility_3d("sightlines.shp", "3dbuildings.shp;topo_tin", "Visibility")
Intervisibility example 2 (stand-alone window)

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

This script demonstrates how to calculate intervisibility for sight lines against the obstructions presented by a surface and/or buildings represented by multipatches.

# Import system modules
import arcpy

try:
    # Checking out 3D Analyst Extension
    arcpy.CheckOutExtension("3D")

    # Set environments
    arcpy.env.workspace = 'C:/data'

    # Setting up input and output variables
    sightlines = "My_Sightlines.shp"
    surface = "DTM_Tin"
    buildings = "My_3D_Buildings.shp"
    viz_field_name = "Visibility"

    print("Calculating Intervisibility...")
    arcpy.Intervisibility_ddd(
        sightlines, surface + ';' + buildings, viz_field_name)
except arcpy.ExecuteError:
    print(arcpy.GetMessages(2))
finally:
    arcpy.CheckInExtension("3D")

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