Ungenerate (Coverage)

License Level:BasicStandardAdvanced

Summary

Creates a text file of x,y coordinates from the input coverage.

Usage

Syntax

Ungenerate_arc (in_cover, out_generate_file, feature_type, {duplicate_nodes}, {format})
ParameterExplanationData Type
in_cover

The coverage from which feature coordinates will be written.

Coverage
out_generate_file

The text file to which the x,y coordinates will be written.

File
feature_type

The type of features that will be used in the generation of the output file.

  • LINECoordinates for arcs will be written.
  • POINTCoordinates for label points will be written.
  • POLYCoordinates for arcs and labels that make up polygon features will be written.
  • TICCoordinates for tics will be written.
  • LINKCoordinates that define links will be written.
  • REGION.subclassCoordinates for the regions in the specified subclass will be written.
  • ANNO.subclassCoordinates for the annotation in the specified subclass will be written.
String
duplicate_nodes
(Optional)

Determines whether duplicate node coordinates will be retained or dropped in the Output Generate File. This applies only to the POLY option.

  • NODESSpecifies that duplicate node coordinates will be written to the Output Generate File. This applies only to the POLY option. This is the default.
  • NONODESSpecifies that duplicate node coordinates will be dropped from the Output Generate File. This applies only to the POLY option.
Boolean
format
(Optional)

Selects either exponential or fixed representation of floating point numbers in the Output Generate File.

  • EXPONENTIALThe coordinates will be written to the Output Generate File in exponential notation. This is the default. This option retains all significant digits and is recommended to preserve precision.
  • FIXEDThe coordinates will be written using approximately seven significant digits for single-precision coverages and approximately 15 significant digits for double-precision coverages.
String

Code Sample

Ungenerate example (stand-alone script)

The following stand-alone script demonstrates how to create a text file from a coverage.

# Name: Ungenerate_Example.py
# Description: Creates a text file from a coverage.
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "tong_azone"
outGenerateFile = "C:/output/tong_azone.gen"
featureType = "POLY"
format = "FIXED"

# Execute Ungenerate
arcpy.Ungenerate_arc(inCover, outGenerateFile, featureType, "", format)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed
6/18/2012