Write Features to Text File (Samples)

许可等级:BasicStandardAdvanced

摘要

Writes feature coordinates to a text file.

法律声明法律声明:
This tool has been deprecated. For more information, see An overview of the Samples toolbox.

用法

语法

WriteFeaturesToTextFile_samples (input_features, output_text_file, decimal_separator_character)
参数说明数据类型
input_features

The input features to be written to a text file.

Feature Layer
output_text_file

The output text file.

Text File
decimal_separator_character

The character that will separate the whole number from the decimal.

  • locale decimal pointThe system decimal point will be inserted. This is the default.
  • default python outputThe default Python separator will be inserted.
  • commaA comma separator will be inserted.
  • periodA period separator will be inserted.
  • $SEP$The $SEP$ string will be inserted.
String

代码实例

# Create geoprocessing dispatch object
import arcgisscripting
gp = arcgisscripting.create()
 
# Set up inputs to tool
inFC= r"C:\temp\routes.txt"
TxtCoords = r"C:\temp\RteCoords.shp"
sep = "locale decimal point"
 
# Run tool
gp.WriteFeaturesToTextFile(inFC, TxtCoords, sep)

环境

此工具不使用任何地理处理环境

许可信息

ArcGIS for Desktop Basic:是
ArcGIS for Desktop Standard:是
ArcGIS for Desktop Advanced:是
9/15/2013