Write Features to Text File (Samples)

Summary

Writes feature coordinates to a text file.

LegacyLegacy:
This tool has been deprecated. For more information, see An overview of the Samples toolbox.

Usage

Syntax

WriteFeaturesToTextFile_samples (input_features, output_text_file, decimal_separator_character)
ParameterExplanationData Type
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

Code Sample

# 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)

Environments

This tool does not use any geoprocessing environments

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

Published 6/7/2010