Create Features from Text File (Samples)

许可等级:BasicStandardAdvanced

摘要

Creates features using coordinates in text files.

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

用法

语法

CreateFeaturesFromTextFile_samples (input_text_file, input_decimal_separator, output_feature_class, {output_feature_class_spatial_reference})
参数说明数据类型
input_text_file

A text file containing coordinates.

Text File
input_decimal_separator

The character that separates the whole number from the decimal. This may vary depending on the source of your data. If the coordinates take the form "1.5", your separator is a period.

String
output_feature_class

The output feature class.

Feature Class
output_feature_class_spatial_reference
(可选)

The spatial reference of the output coordinates.

Spatial Reference

代码实例

# Create geoprocessing dispatch object
import arcgisscripting
gp = arcgisscripting.create()
 
# Set up inputs to tool
inTxt = r"C:\temp\StreamPoints.txt"
inSep = "."
strms = r"C:\temp\Streams.shp"
 
# Run tool
gp.CreateFeaturesFromTextFile(inTxt, inSep, strms, "#")
 
# Use output from createfeatures tool as input to buffer
outFCbuf = r"C:\temp\StreamsBuf.shp"
gp.buffer(strms, "10 Unknown", "FULL", "ROUND", "NONE", "#")

环境

许可信息

ArcGIS for Desktop Basic: 是
ArcGIS for Desktop Standard: 是
ArcGIS for Desktop Advanced: 是
5/10/2014