(NOTE: MIDLG does NOT read Standard DLG Distribution Format or 1:2000000-Scale Optional DLG Distribution Format magnetic tapes).
@@ifpace
Name Prompt Count Type FILE Database File Name 1-64 Char DBSN Database Segment Name 1-8 Char DBSD Database Segment Descriptor 0-64 Char STARTFIL Start File on Tape 1 Int The following parameter receives output: LASC Last Segment Created 1 Int
EASI>FILE="filename"
EASI>DBSN="...string..."
EASI>DBSD="...string..." | Default, blank line
EASI>STARTFIL=1 | read first DLG file on tape EASI>STARTFIL=n | read nth DLG file on tape
Although the topology of the DLG is not retained, MIDLG strives to retain as much information as possible. Line records are retained and node/area information is skipped. However, this information is partially retained, since lines will bound areas and node information is included in lines.
When MIDLG is run, a new vector segment (type VEC:116) is created on the PCIDSK file (FILE) to hold the information. Parameter LASC will be updated with the number of the newly created vector segment number when MIDLG completes. The PCIDSK file must exist, but does not have to have any image data (see EXAMPLE). The vector segment will be given a name (DBSN) and description (DBSD) specified by the user.
STARTFIL must be specified for a given MIDLG run. It refers to the DLG file to process, excluding header files and trailer files, if present. If the STARTFIL is not on the tape, MIDLG rewinds the tape and exits with an error message (E145, "Nonexistent file").
If the line has a Major and Minor attribute code associated with it, these are combined and saved in the Attribute field in the output vector record. The Minor code will be the last four digits, while the Major code will be the remaining high-order digits. For example, if the line has a Major code of 050 and a Minor code of 0200 (i.e. a shoreline), these are combined to produce 500200 which is stored in the attribute field for the line in the vector segment. If there is more than one set of Major and Minor attribute codes in the input DLG line record, only the first set is retained. The map scale, the name of the source map, and the overlay category are saved in the history descriptor for the vector segment. The segment history descriptor may be checked by specifying DTYP="FULL" and running ASL after the MIDLG run to ensure that the correct DLG specified by STARTFIL was read (see EXAMPLE).
There is no reporting function for DLG format magnetic tapes in the tape header read task MSH, so you will need the tape listing sent with the tape by USGS to keep track of what is on the tape.
@@ifpace
EASI>FILE="DLG.PIX" EASI>DBSZ=8,1 EASI>DBNC=0 EASI>R CIM EASI>DBSN="BOUNDS" EASI>DBSD="Lake Mathews, CA - Boundaries" EASI>STARTFIL=1 EASI>RUN MIDLG EASI>DTYP="FULL" EASI>R ASL