EGB Hydro Centerline (Defense Mapping)

ライセンス レベル:BasicStandardAdvanced

サマリ

Converts hydrographic polygon features into individual polyline centerlines. This tool is used by the Esri Defense Mapping solution to create polyline hydrographic features at scales where a polygon feature is inappropriate or not useful. It produces an approximate centerline from input polygons. This centerline serves as a polyline representation of the original polygon feature.

使用法

構文

EGBHydroCenterline_defense (in_polygon_features, in_polyline_features)
パラメータ説明データ タイプ
in_polygon_features

The polygon features from which centerlines will be generated.

Feature Layer
in_polyline_features

A preexisting polyline feature class.

Feature Layer

コードのサンプル

EGBHydroCenterLine example (stand-alone script)

The following stand-alone script demonstrates how to use the EGBHydroCenterline tool.

# EGBHydroCenterline_Example.py
# Description:
# Requirements: Esri Defense Mapping solution, 3D Analyst extension, Spatial Analyst extension
 
# Import arcpy module
import arcpy

# Check out a DefenseMapping extension license
arcpy.CheckOutExtension("3d")
arcpy.CheckOutExtension("foundation")
arcpy.CheckOutExtension("defense")

arcpy.env.workspace = "c:\\data\\HydroTest.gdb"

inPolyFeatures = "HydrographySrf"
inPolylineFeatures = "HydrographyCrv"

# Create 2 feature layers for processing
arcpy.MakeFeatureLayer_management(inPolyFeatures,'inPolyFeats')
arcpy.MakeFeatureLayer_management(inPolylineFeatures,'inPolyLineFeats')

# execute the EGB Hydro Centerline tool
arcpy.EGBHydroCenterline_defense('inPolyFeats', 'inPolyLineFeats')
print arcpy.GetMessages()

# Check in the extensions
arcpy.CheckInExtension("3d")
arcpy.CheckInExtension("foundation")
arcpy.CheckInExtension("defense")

環境

ライセンス情報

ArcGIS for Desktop Basic: ×
ArcGIS for Desktop Standard: 次のものが必要 Defense Mapping and Spatial Analyst and 3D Analyst
ArcGIS for Desktop Advanced: 次のものが必要 Defense Mapping and Spatial Analyst and 3D Analyst
4/26/2014