Generates a coverage from coordinates stored in a file.
The coordinate precision of the output coverage is determined by the precision setting. To convert a double-precision file to a double-precision coverage, the precision must be set to Double.
While processing duplicate tics with the same ID number, the last tic read with the same ID number is the one whose coordinates are stored in the coverage tic file.
When polygons are generated, each polygon will be closed automatically from the last vertex entered to the first vertex if the two vertices are not the same.
Coordinates in the input file can be in x,y,z format, but Generate ignores the z-values if they exist.
The geoprocessing tool takes in a text file that has a User-ID number for each line, followed by the series of xy coordinate pairs that define the line.
This tool is not interactive, as the GENERATE command in ArcInfo Workstation was.
Use the Ungenerate tool to create the file to be used as the input file.
Generate(in_file, out_cover, feature_type)
The file containing feature coordinates that will be used to generate a coverage.
The coverage to be generated.
The type of features to create:
Generate example (stand-alone script)
The following stand-alone script demonstrates how to generate a coverage from a file of coordinates.
# Name: Generate_Example.py # Description: Generates a coverage from a file of coordinates. # Requirements: ArcInfo Workstation # Import system modules import arcpy from arcpy import env # Set environment settings env.workspace = "C:/data" # Set local variables inFile = "wells.gen" outCover = "C:/output/wells" featureType = "POINTS" # Execute Generate arcpy.Generate_arc(inFile, outCover, featureType)
- Basic: No
- Standard: No
- Advanced: Requires ArcInfo Workstation installed