Download The ARC/INFO Application Development Primer

Transcript
Innovative GIS Solutions
Page 2
Table of Contents
Preface....................................................................................................... 6
1.0
Overview of the ARC/INFO Product Line ..................................... 9
1.1
1.2
2.0
AML – ARC/INFO‟s Glue ................................................................................ 12
Module languages .......................................................................................... 13
The Arc Macro Language – AML................................................. 16
2.1 Basic Operating Principles ............................................................................ 16
2.1.1 Directives ................................................................................................... 17
2.1.2 Variables.................................................................................................... 17
2.1.3 Functions ................................................................................................... 18
2.1.4 Functional Groups ..................................................................................... 19
2.2 Organizing Applications – An Application Development Methodology .... 19
2.2.1 RAPiD AML – An Example ADM ............................................................... 20
Meta-Data Tables........................................................................................................21
2.2.2 The ATOOL Approach ............................................................................... 25
2.3 File Management Issues ................................................................................ 26
2.3.1 Pathing & Environment Variables ............................................................. 26
2.3.2 Individual User Startup Files ...................................................................... 29
2.3.3 System Startup Files ................................................................................. 30
2.3.4 Version control........................................................................................... 30
Development versus Production versions....................................................................31
Encrypting AML Programs ..........................................................................................31
2.4 Workspace / Data Management Issues......................................................... 32
2.4.1 Environment Variables............................................................................... 32
2.4.2 Data and Code Separation – Workspace Independence ........................... 33
2.5 Macro Development ....................................................................................... 33
2.5.1 Coding Methodologies ............................................................................... 33
ArcTools Coding Standards ........................................................................................33
Multiple Entry Point Approach .....................................................................................35
An Example Toolset – getsymset.aml .........................................................................37
Using AML Templates .................................................................................................39
2.5.2
Using Variables ......................................................................................... 40
Error Handling and Trapping .......................................................................................42
Limits ..........................................................................................................................42
2.5.3 ArcTools - Source Toolsets ....................................................................... 43
2.5.4 Key AML Functions and Directives ............................................................ 46
2.6 GUI Development ........................................................................................... 48
2.6.1 Menu Options ............................................................................................ 48
The ARC/INFO Application Development Primer