Open Table of Contents

Ungenerate

Go to ToolBox Implementation

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
 

ToolBox implementation
(Go to TOP)

Command line syntax

ET_GPUngenerate <input_dataset> <out_file> <delimiter> {export_attributes}

Parameters

Expression Explanation
<input_dataset> A feature class or feature layer
<out_file> A String - the full name of the output text file
<delimiter> A String indicating what separator to be used. Valid strings:
  • "Comma"
  • "Space" 
  • "Tab" 
{export_attributes} A Boolean indicating whether to export the attributes.

Scripting syntax

ET_GPUngenerate (input_dataset out_file delimiter  export_attributes)

See the explanations above:
<> - required parameter
{} - optional parameter

Copyright Ianko Tchoukanski