Extract Depths To ASCII (Bathymetry)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

Extracts depths from a surface model stored in a BIS workspace and converts depths to an ASCII file. This model allows you to share your depths with non-Esri software packages. This model runs Extract Depths and Depths To ASCII to create an output feature class and ASCII file.

Utilisation

Syntaxe

ExtractDepthstoASCII_bathymetry (BIS_Workspace, BIS_Model, Clipping_Feature, Spacing__m_, Depths_Feature, ASCII_File)
ParamètreExplicationType de données
BIS_Workspace

The Bathymetric Information System (BIS) geodatabase (.gdb) or a connection (.sde) to the BIS database containing the surface model and mosaic dataset.

Workspace
BIS_Model
[BIS_Model,...]

The name of the composite surface in the BIS Workspace. It is prepopulated with a list of names of the models saved in the workspace.

String
Clipping_Feature

A feature layer that contains a single polygon clipping feature that defines the feature extraction extent.

Feature Layer
Spacing__m_

The desired spacing between sampled points in the output, in meters.

Double
Depths_Feature

The feature class that will contain the extracted depth features. This tool will output a new, z-enabled point feature class.

Feature Class
ASCII_File

The text file to which features will be written.

File

Exemple de code

ExtractDepthstoASCII example (Python window)

The following Python window script demonstrates how to use the ExtractDepthstoASCII tool.

# Name: ExtractingDepthstoASCII_Example.py
# Description: Extracts depths from a surface model and writes them to an ASCII file.
# Requirements: ArcGIS for Maritime Bathymetry

# Import the arcpy module
import arcpy

# reference the BIS workspace
bisWS = "C:/Data/BIS/MyBIS.gdb"

# reference the surface model
surfaceModel = "My Model"

# point to the clipping feature class
clippingFC = "C:/Data/AOI/AOI.gdb/ClippingFC"

# Define the depth spacing value in meters
depthSpacing = 25

# point to where the Depths feature class will be created
depthFC = "C:/Data/BIS/MyBIS.gdb/Depths"

# Define the ASCII file name and where it will get written to
asciiFile = "C:/Data/Output/Depths2ASCII.txt"

# execute the Extract Depths to ASCII model
arcpy.ExtractDepthstoASCII_bathymetry(bisWS, surfaceModel, clippingFC, depthSpacing, depthFC, asciiFile)

print "Successfully extracted depths to the ASCII file"

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Annuler
ArcGIS for Desktop Standard: Requis Maritime Bathymetry
ArcGIS for Desktop Advanced: Requis Maritime Bathymetry
4/26/2014