How To: Create a .PCODE file for area line input to ARCDFAD
A description of the .PCODE INFO file and its item definitions for ARCDFAD conversion.
The .PCODE file must have these items:
ITEM NAME WIDTH OUTPUT TYPE ------------------------------------- FACODE 4 5 B HEIGHT 4 5 B FICODE 4 5 B SMCCODE 4 5 B NSTRUCT_PSK 2 5 B PCT_TREE_COV 2 5 B PCT_ROOF_COV 2 5 B
The .PCODE item FACODE must have values which are related to the DS<nnn>P-ID found in the .AAT. 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 .PCODE file.
/* NAME: PCODE.AML /* /* USAGE: &RUN PCODE.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.