Write Features to Text File (Samples)

Zusammenfassung

Writes feature coordinates to a text file.

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

Verwendung

Syntax

WriteFeaturesToTextFile_samples (input_features, output_text_file, decimal_separator_character)
ParameterErläuterungDatentyp
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

Codebeispiel

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

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Lizenzinformationen

ArcView: Ja
ArcEditor: Ja
ArcInfo: Ja

4/19/2012