Write Features to Text File (Samples)

Resumen

Writes feature coordinates to a text file.

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

Uso

Sintaxis

WriteFeaturesToTextFile_samples (input_features, output_text_file, decimal_separator_character)
ParámetroExplicaciónTipo de datos
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

Ejemplo de código

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

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento

4/19/2012