Export To DLG (Coverage)

Summary

Creates a Digital Line Graph from a coverage. The DLG is output in DLG-3 Optional (as opposed to Standard) format.

Learn more about how Export To DLG works.

Usage

Syntax

ArcDLG_arc (in_cover, out_dlg_file, {in_point_cover}, {in_projection_file}, {x_shift}, {y_shift}, {in_header_file}, {transform})
ParameterExplanationData Type
in_cover

The coverage to be converted to DLG format. It may contain polygon, line, and node features.

Coverage
out_dlg_file

The output DLG-3 Optional format file to be created.

File
in_point_cover
(Optional)

A coverage containing point features to be written as zero length, degenerate Line (L) records in the output DLG.

Coverage
in_projection_file
(Optional)

A text file containing input projection parameters to be saved in the DLG header.

File
x_shift
(Optional)

A constant value to be added to all coverage x-coordinates during the conversion to DLG. X Shift overrides any x-shift parameters found in either projection file or input cover projection definition file. If a value for X Shift is not specified, the default is zero.

Double
y_shift
(Optional)

A constant value to be added to all y-coordinates during conversion to DLG. Y Shift overrides any y-shift parameters found in either the projection file or input cover projection definition file. If a value for Y Shift is not specified, the default is zero.

Double
in_header_file
(Optional)

The file containing information to be written into the header of the DLG file.

File
transform
(Optional)

This operation controls whether a coordinate transformation is performed. Usually, coordinates are transformed to preserve accuracy when written to the DLG.

  • TRANSFORMTransforms coordinates in the DLG file
  • NOTRANSFORMDoes not transform coordinates in the DLG file
Boolean

Code Sample

ArcDLG example (stand-alone script)

The following stand-alone script demonstrates how to export a polygon and a point coverage to DLG format.

# Name: ArcDLG_Example.py
# Description: Exports two coverages to DLG format
# Requirements: ArcInfo Workstation
# Author: ESRI

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "stand"
outDlgFile = "C:/output/stand.dlg"
inPointCover = "tong_basin4"
inProjectionFile = "stand.prj"
xShift = -500000
yShift = -6000000
inHeaderFile = "standheader.txt"

# Execute ArcDLG
arcpy.ArcDLG_arc (inCover, outDlgFile, inPointCover, inProjectionFile,
                  xShift, yShift, inHeaderFile, "")

Environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: No
ArcInfo: Requires ArcInfo Workstation installed

Published 6/8/2010