Reads an Arc Generate-line compatable file and writes a database acceptable ASCII file.
Reads an Arc Generate-line compatable file and writes a database acceptable ASCII file.
- INFILE
- Input file. File containing data to be reformatted. Use host file name syntax. This file is generated by an UNGENERATE-LINE command from ARC/INFO.
- OUTFILE
- Output file. File to receive the reformatted data. Use host file name syntax. This file can be used as a data file for loading a database.
The Arc Generate-line format file KMG.GEN will be read and a formatted database acceptable ASCII file named KMG will be created.
The specified Arc Generate-line input file will contain data beginning with an ID value on a line by itself. This ID value is the identifier for the current arc. Subsequent lines contain the X, Y nodal locations for the arc. At the end of each set of arc X, Y coordinate pairs, "END" will be on a line by itself, followed either by an additional arc value, or by a second END. The second "END" designates the end of file. As each node is read, data is written to the ouput file in the form of ID, X, Y. An example input file is of the following format:
1 23 45 24 45 END 2 32 90 43 87 END ENDThis file will be opened and read, the output file will be written in the new format, and the files will be closed. The output file generated by the above input file is:
1 23 45 1 24 45 2 32 90 2 43 87
A fatal error was encountered during processing. Processing is terminated. The error message that is displayed immediately preceding this message is the specific error encountered.
2. [gen2asc-open] Error opening <xxx> file
An error occured while trying to open the specified file. Check directory protections and availible disk space. If the problem persists, contact the system administrator.