Procedures for constructing ArcInfo coverages and GMT files from 1:100,000 DLG data

For this procedure we will be generating roads and hydrology ArcInfo coverages and GMT-formatted files using DLG data which come with the CD titled:

           1:100,000-Scale Digital Line Graph (DLG) Data
           Hydrography and Transportation
           US GeoData 
           Optional Format 
      
        Which, for the West Coast, just happens to be in our library as:  
           VK
           597
           .U5
           E278
           CD ROM
           no.12
      
  1. Make a directory to store your dlg data (e.g., yosemite):
                 mkdir yosemite
                 cd    yosemite
              

  2. Put the CD in the drive and copy the roads and hydrology zip files from the CD
                 cp /cdrom/sec12opt/100k_dlg/yosemite/mz1roads.zip .
                 cp /cdrom/sec12opt/100k_dlg/yosemite/mz1hydro.zip .
              

  3. Unzip the roads and hydro zip files
                 unzip mz1roads
                 unzip mz1hydro
              

  4. Convert the files from DOS to UNIX format
                 dos2unix MZ1RDF01 mz1rdf01
                 dos2unix MZ1RDF02 mz1rdf02
                          :
                          :
                 dos2unix MZ1RDF08 mz1rdf08
              
    and for hydrology
                 dos2unix MZ1HYF01 mz1hyf01
                 dos2unix MZ1HYF02 mz1hyf02
                          :
                          :
                 dos2unix MZ1HYF08 mz1hyf08
              

  5. In ARC construct the coverages (Note: at this point, at the Arc: prompt you can run the AML dlg_to_road-cov.aml. using the road files' prefix (such as mz1rdf0 for the files mz1rdf01 through mz1rdf08) to generate the road coverage. The following steps (through step 10) define the procedures in that AML.
                 Arc: dlgarc optional mz1rdf01 rd1
                 Arc: dlgarc optional mz1rdf02 rd2
                          :
                          :
                 Arc: dlgarc optional mz1rdf08 rd8
              
    and for hydrology
                 Arc: dlgarc optional mz1hyf01 rd1
                 Arc: dlgarc optional mz1hyf02 rd2
                          :
                          :
                 Arc: dlgarc optional mz1hyf08 rd8
              

  6. Build the coverages rd1 through rd8
                 Arc: build rd1 line
                 Arc: build rd2 line
                      :
                      :
                 Arc: build rd8 line
              

  7. Add the major1 and minor1 fields
                 Arc: additem rd1.aat rd1.aat major1 6 6 i
                 Arc: additem rd1.aat rd1.aat minor1 6 6 i
                 Arc: additem rd2.aat rd2.aat major1 6 6 i
                 Arc: additem rd2.aat rd2.aat minor1 6 6 i
                      :
                      :
              

  8. Build a relate (this relate must be re-built for rd2, rd3, etc.)
                 Arc: relate add
                 Relation Name: rel_rd1
                 Table Identifier: rd1.acode
                 Database Name: info
                 INFO Item: rd1-id
                 Relate Column: rd1-id
                 Relate Type: linear
                 Relate Access: ro
    
                 Relate Name: rel_rd2
                      :
                      :
              

  9. In Tables move the major1 and minor1 attributes to the .aat file
                 Arc: tables
                 Enter Command: sel rd1.aat
                 Enter Command: calc major1 = rel_rd1//major1
                 Enter Command: calc minor1 = rel_rd1//minor1
                 Enter Command: sel rd2.aat
                 Enter Command: calc major1 = rel_rd2//major1
                 Enter Command: calc minor1 = rel_rd2//minor1
                      :
                      :
                 Enter Command: quit
              

  10. Append the coverages into the coverage rd
                 Arc: append rd line all
                 Enter the 1st coverage: rd1
                 Enter the 2nd coverage: rd2
                 Enter the 3rd coverage: rd3
                 Enter the 4th coverage: rd4
                 Enter the 5th coverage: rd5
                 Enter the 6th coverage: rd6
                 Enter the 7th coverage: rd7
                 Enter the 8th coverage: rd8
                 Enter the 9th coverage: end
              

  11. Project the appended rd coverage if desired (e.g., UTM to Geographic using the projection file utm11_to_geo.prj).
                 Arc: project cover rd rd_ll utm11_to_geo.prj
              

  12. Convert the rd_ll coverage to a series of GMT-formatted files. At the Arc: prompt run the AML dlg-rd-cov_to_gmt.aml on the rd_ll coverage.
                 Arc: &r dlg-rd-cov_to_gmt rd_ll
              

  13. Run a similar procedure to generate hydrology coverages and GMT-formatted files if necessary.

    Use the AML dlg_to_hydro-cov.aml, and the hydrology files' prefix (such as mz1hyf0 for the files mz1hyf01 through mz1hyf08) to generate the hydrology coverage.

                 Arc: &r dlg_to_hydro-cov.aml mz1hyf0
              
    Then convert the coverage to GMT-formatted files dlg-hy-cov_to_gmt using the resultant hy_ll coverage.
                 Arc: &r dlg-hy-cov_to_gmt hy_ll
              
The results of these operations will be a series of GMT-formatted road files titled:

dlg_prim.xy
dlg_sec.xy
dlg_road.xy
dlg_trl.xy

and a series of GMT-formatted hydrology files titled:

dlg_str.xy
dlg_stri.xy
dlg_shor.xy
dlg_aqu.xy



11/08/99