English

How To: Create .XCODE INFO file for point coverage input to ARCDFAD

Summary

A description of the .XCODE INFO file and its item definitions for ARCDFAD conversion.

Procedure

The .XCODE file must have the following items:

ITEM NAME        WIDTH OUTPUT  TYPE 
-------------------------------------
FACODE 4 5 B
HEIGHT 4 5 B
FICODE 4 5 B
SMCCODE 4 5 B
ORIENTATION 2 3 B
LENGTH 2 3 B
WIDTH 2 3 B

The FACODE item must have values related to the DSnnnL-ID found in the .PAT. Appropriate values for the remaining items must be determined from the DFAD format specifications. See Related Information to find out how to obtain those specifications.

You could use AML to automate the creation of the .XCODE file.

/* NAME: XCODE.AML
/*
/* USAGE: &RUN XCODE.AML
/*
/* NOTES:
/*
/* Run this AML from the Arc prompt.
/* Run this AML from a directory that is NOT the workspace
/* directory that will be converted with ARCDFAD
/*
/* This is not an ESRI supported AML. Please use at your own risk.
/* Also, please make a backup of your data before running this AML
/* and carefully check the output. This is just a skeleton AML with
/* no real error checking. It is meant only as a guide to developing an
/* AML specific to your data inputs and desired outputs.

&args worksp incov
&sv orig_work = [show &workspace]
&workspace %worksp%
&if ^ [exist %incov% -cover] &then
&type Coverage %incov% not found.
&else
&do
tables
define %incov%.xcode
facode,4,5,b
height,4,5,b
ficode,4,5,b
smccode,4,5,b
orientation,2,3,b
length,2,3,b
width,2,3,b
~
quit
&end
&workspace %orig_work%
&return


Note:
If the DSnnnL coverage has not been built for POINT, it is not necessary to create an .XCODE file, but the points will not be converted to DFAD.


Note:
The ArcInfo DFAD translator supports DFAD levels 1, 2, 1-C, and 3-C only. Check with your data provider to determine what DFAD level you have.

Related Information