HOW TO
AML looping syntax to enable the APPEND and MAPJOIN commands to read coverage names from a text file.
Code:
Arc: &type [listfile * -cover covlist.txt]
Code:
&SETVAR fileunit = [OPEN covlist.txt openstat -READ]
&SETVAR covname = [READ %fileunit% readstat]
/* Insert the syntax for either MAPJOIN or APPEND here.
/* For example:
APPEND outcov polygon
&DO &UNTIL %readstat% = 102
[VALUE covname]
&SETVAR covname = [READ %fileunit% readstat]
&END
[UNQUOTE ' ']
y
y
&SETVAR close_stat = [CLOSE -ALL]
&RETURN
Article ID:000001990
Get help from ArcGIS experts
Download the Esri Support App