Ungenerate

Running programmatically

Exports a feature class to ArcInfo generate format text file. The user can specify optionally to export the attributes. In this case the format of the result text file will be in an extended version of ArcInfo generate forma - described below

Inputs:

Outputs:

Notes:

File formats:

The shapes that have Z or M values will have an additional coordinate

Shape Type Standard Format Example Extended Format Example
Point
PointZ
PointM
id,x,y
id,x,y
id,x,y
END
1,34.5,-14.3
2,12.8,-19.6
3,13.4,-25.6
END
ID,X,Y,FIELD,FIELD
id,x,y,value,value
id,x,y,value,value
id,x,y,value,value
END
ID,X,Y,Town,Population
1,34.5,-14.3,London,44
2,12.8,-19.6,Paris,34
3,13.4,-25.6,Madrid,56
END
Polyline
PolylineZ
PolylineM
id
x,y
x,y
END
id
x,y
x,y
x,y
END
END
1
34.5,-14.3
12.8,-19.6
END
2
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
ID,FIELD,FIELD
id,value,value
x,y
x,y
END
id,value,value
x,y
x,y
x,y
END
END
ID,Street,Streettype
1,Church,Street
34.5,-14.3
12.8,-19.6
END
2,Second,Avenue
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
Polygon
PolygonZ
PolygonM
id,xLabel,yLabel
x,y
x,y
x,y
END
id
x,y
x,y
x,y
END
END
1, 12.5,-18,6
34.5,-14.3
12.8,-19.6
12.43,-19.88
END
2,14.3,24.5
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
ID,FIELD,FIELD
id,value,value
x,y
x,y
x,y
END
id,value,value
x,y
x,y
x,y
END
END
ID,X,Y, Dam,Volume
1,12.5,-18,6,Vaal,5346
34.5,-14.3
12.8,-19.6
12.43,-19.88
END
2,14.3,24.5,Gariep,6578
13.4,-25.6
16.4,-27.6
13.8,-22.1
END
END
Box id,xmin,ymin,xmax,ymax
id,xmin,ymin,xmax,ymax
id,xmin,ymin,xmax,ymax
END
1,34.5,-14.3,34.8,-14.1
2,12.8,-19.6,12.9,-19.2
3,13.4,-25.6,13.6,-25.4
END
ID,XMIN,YMIN,XMAX,YMAX,FIELD
id,xmin,ymin,xmax,ymax,value
id,xmin,ymin,xmax,ymax,value
id,xmin,ymin,xmax,ymax,value
END
 

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name Ungenerate
<input dataset> A String representing the input layer. Must be of Polygon type.
<output file> A String - the full name of the output text file.
<Delimiter< A String indicating the delimiter to be used. Valid values: "Comma", "Tab", "Space"
{Delimiter Field} A String representing the name of a field in the in the attribute table of the input dataset. The field has the values for the distance between the grid points.
{Export Attributes} A Boolean indicating whether the attributes to be exported to the text file
{Envelope Only} A Boolean indicating whether the envelope of the geometry to be exported instead of the entire geometry.
{Precision} A Integer representing the number of digits after the decimal point to be used for storing coordinates.

Running the function

ETGWPath used in the table below is the full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call( [ETGWPath, "Ungenerate", "input dataset", "output file", "Delimiter", "Export Attributes", "Envelope Only", "Precision"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "Ungenerate" "input dataset" "output file" "Delimiter" "Export Attributes" "Envelope Only" "Precision"
.NET using ETGWOutX.dll Ungenerate(input dataset, output file, Delimiter, Export Attributes, Envelope Only, "Precision")
ArcPy arcpy.Ungenerate(input dataset, output file , "Delimiter", "Export Attributes", "Envelope Only", "Precision")

Notes:

(Go to TOP)