| Greetings and a Happy New Year, Welcome to the second issue of my on-line newsletter. The response to the first issue was great! Thank you for all your responses: I appreciated both the friendly and encouraging ones and the challenging ones. And thanks especially to those of you who forwarded the newsletter to your friends and colleagues. It means a lot to me. The first issue of the newsletter was placed in HTML format on my Web site (www.elroi.com), as well as e-mailed out in text format. Many of you had trouble reading the text version, especially the tables. Therefore, I am sending this issue in PDF format. Click here to view the Adobe Acrobat PDF version . This way you can download it and read it with the free Adobe Acrobat Reader (www.adobe.com) or with your Adobe Acrobat plug-in in your browser. If you are using Acrobat Reader 3.0 in NT, and are having problems printing, try version 3.01. Please let me know if the Acrobat format works better for you. I encourage you to comment on the newsletter, ask questions, or relay information you think might be of interest to my readers. Also, if you want me to add your friends to the e-mailing list, please send me their names and e-mail addresses.Finally, I hope everyone enjoyed the December holiday season, and will experience the kind of 1999 they wish to experience. Daniel |
Porting ARC/INFO Applications from UNIX to Windows NT- Part 1In my last newsletter I addressed some of the generic technical and administrative issues relating to migrating ARC/INFO licenses from UNIX to Windows NT. In case you missed it, I addressed topics such as performance, reliability, and impacts on personnel and purchasing. In this issue I will begin to address some specific technical issues relating to the migration of ARC/INFO applications to Windows NT. I hope that this information will be useful, especially to those amongst you who are already tasked with such migration. When migrating an application to NT, there are several broad activities that need to performed: setting user environments, setting application parameters, making UNIX-specific functionality work in NT, accommodating new drive and directory naming conventions, and making the migration as painless as possible. I will address each of these topics in order to convey the general activities required. Each installation will, of course, be different, and I invite you to write me with specific questions you have. In this first part I will address customizing the environment in both ARC/INFO and NT. In future editions of my newsletter I will also address replacing UNIX functions with AML and NT equivalents, and the general process of porting applications.
The user environment The user environment consists of various system- or environment-variables that control where data is read from and written to, where programs are found, and so on. Some of these variables are set to default values by ARC/INFO during the user installation. Other variables are optional, and can be set after installation. For example, the background color (or canvas color) in Arcedit or Arcplot is black by default. However, it can be changed to white by setting an optional variable CANVASCOLOR. As another example, new fonts can be introduced to ARC/INFO using the AIFONTINDEX variable. Environment variables in NT can be set for a particular user of a particular PC, a particular user on whichever PC on the network is used, all users of a particular PC, or all users on the network.
Below is a list of environment variables for Windows NT. To read the complete reference, start ARC/INFOs help system, press Search, then Index, and enter "setting,user-defined environment variables". My favorite variable is CANVASCOLOR, because I like the WYSIWYG appearance of black features on a white background, rather than on the default black background. Some users say that it puts a strain on their eyes, but then, how many users of MS Word, for example, change the background of their page from white to something darker? Not many. (By the way, you do that by going to Format | Background). AICODESET · AICOLORFILE · AICULLING · AIFONTINDEX · ARCDYNAMICPAN · ARCINFOFONTNAME · ARCINFOFONTSIZE · ARCMAXBUFPOINTS · ARCMAXBUFARCS · ARCMEMSIZE · ARCPANZOOM · ARCTMPDIR · ARCTRANSACTIONSESSION · ARCUSEDRAWBUFFER · ARCWINDOWSTATS · APRESSTMPDIR · CANVASCOLOR · CROSSHAIRCOLOR · GRIDALLOCSIZE · OVERLAYALLOCSIZE · PRINTER · USEBACKINGSTORE Application parameters Application parameters consist of both parameters set by ARC/INFO for the general user, and by a specific ARC/INFO application for the purpose of running the application correctly. It is unfortunate that many users do not take sufficient advantage of the parameters available to them for customizing their environment. Fortunately, NT is more conducive to personal customization than UNIX, so I hope that more users will take advantage of these.
Generic parameters Generic ARC/INFO parameters that may be set by the user include display settings (e.g. 9999 3 versus 9999 1), terminal settings (e.g. &term 9999), AML toggles (e.g. &PT &ON), Arcedit settings (e.g. shadeset colornames), Arcplot settings (e.g. library mybasemap), and so on. These are most easily placed in one of two types of special AMLs called <module>.aml (e.g. arcedit.aml) and .<module> (e.g. .arcedit). The basic logic is this: if the user wishes to customize Arcedit, for example, so that it always starts with a certain lineset or nodesnap distance, regardless of the project or start-up directory, then these parameters are best placed in a <module>.aml file. This file is best placed in a special start-up directory I like to call it archome and to place it directly under C: or D: (e.g. c:\archome\arcedit.aml). When you install the User Setup for ARC/INFO, the installation script asks where the user would like to start up ARC/INFO. If the name of this directory (e.g. archome) is given, then any <module>.amls in that directory will be automatically executed when the module is started (i.e. arc.aml will run when ARC/INFO is started, arcedit.aml will run when Arcedit is started, etc.). If you want the official version from ESRI, start the help file, press Search and then Index, and enter "startup directory". The help file does not fully account for the flexibility the NT user has in starting ARC/INFO, however. There are (at least) three ways to start ARC/INFO in NT: click on the ARC/INFO icon in Start | Programs | ARC INFO User 7.x; click on an ARC/INFO icon which has been added to the Start menu or to the desktop; or start a DOS shell window and type "Arc". The only method that is relatively likely to start in the start-up directory that was specified in the installation is the first one. Even then, if the user changes workspace prior to starting a module (e.g. Arcedit), the special AML will not start. So is all this customization worth it? Definitely! Lets look at a method to accommodate the flexibility with which NT users can start ARC/INFO. The first thing that you can do is set up two environment variables (either System or User variables see above) called HOMEDRIVE and HOMEPATH. HOMEDRIVE would be the drive letter where your archome directory resides (e.g. C:\). HOMEPATH would be the path to your archome directory (e.g. archome). Then name your special AMLs .<module> (i.e. .arc, .arcedit, etc.) instead of <module>.aml (i.e. arc.aml, arcedit.aml, etc.). Then, wherever you start ARC/INFO, and by whichever of the three methods listed above, these special application environment AMLs will be executed. Two final notes on these start-up AMLs. Windows will resist letting you call a file .arc, .arcedit, etc. because it cannot accept file names without a prefix. Therefore, write these AMLs in Notepad or some other word processor, save them as text files named arc.aml, for example, and then in a DOS shell window rename them to .arc etc. Amusingly, if you have installed WinZip on your PC, the .arc file will appear to be a Zip file, because one of the file extensions associated with WinZip is .arc (archive files). Ah yes, NT can be amusing at times.
New clients, new projects1998, my first year in independent practice, has been great thanks to all my new clients and their interesting projects. The GIS Group (Parker, Colorado) has the distinction of being my first client. Owned by David Porter, The GIS Group performs specialized GIS data conversion and manipulation, particularly related to assessor data and properties, telecommunications, and real estate. Clients requiring such services are encouraged to contact The GIS Group at (303) 840-8675. I am performing various programming, training, and strategic software product planning for two engineering firms, Knight Piésold (Denver, Colorado) and Condor Earth Technologies (Sonora, California). I am particularly pleased with my on-going relationship with Knight Piésold, my previous employer of seven years. It is good to build on good relationships over time.
In the pipeline industry I am happy to assist PennWell MAPSearch (Durango, Colorado) in their pipeline mapping and database projects. In the mining industry I welcome three new clients, Cripple Creek & Victor Gold Mining Company (Cripple Creek, Colorado), Independence Mining Company (Elko, Nevada), and Phelps Dodge Morenci (Morenci, Arizona). I am assisting these firms with designing databases, training, and programming applications for the purpose of managing exploration, property, and production data. Finally, on the government side, I am excited to have the National Oceanographic and Atmospheric Administration (Boulder, Colorado) as a client, where I am assisting in software design and project management. Thank you all for choosing to use my services and for trusting me with your projects.
Changes to www.elroi.comMy Web site, www.elroi.com, has undergone some improvements recently. I have added a new Specialties section, and a list of clients under the existing Services section. This list includes organizations that I have worked for as an employee, consulted to as an employee, or consulted to independently. This list may seem a little dry at first (though necessary), so I have started a page of photographs of my clients as well. Are you on it yet? Want to be? Send me a photograph or a digital image, and I will get it on there. OK, while we are on the topic of photographs, I have also started a page of travel photographs from some of my many trips associated with my GIS consulting. Just for fun. Access it by clicking on my picture in the first page. Finally, since I am frequently asked to provide my résumé, I have included that on the site as well. If you have any suggestions for improvements, please let me know.
All trademarks, trade names, and registered names used in this article are the properties of their recognized and legal owners. Copyright © 1998 Daniel Elroi. |
![]()