Basic Arc View Topics:

This Document is written by Jim Turenne, it is intended to provide basic information on using Arc view GIS and the MassGIS Data Viewer. Topics will be updated/added as an ongoing effort. Contact Jim Turenne for more information or to report errors. Additional information on GIS can be found at: www.gis.com.

Basic GIS - Data Models, Vector, Raster, Images.

Shape files vs Coverages The difference between the two formats, how to convert from a coverage to a shapefile, where to get them. Shape file structure The files included with a shape file (*.sbn, *.shp, *.dbf).

Arc View Project Files (APR files), GUIs, Document Windows/Types.

Theme Properties and Table Properties

Joining Tables

Attribute Table Structure: Editing Tables, Adding Fields, Calculating Acres.

Adding an event theme taking a text file with coordinates (GPS, etc) and making it into a shape-point file.

Projection utility How to convert UTM to Mass State Plane.

Modifying an APR file if you get an apr file that keeps asking you "where is ortho.dbf". Changing the paths with a text editor.
Projections/Datums NAD 83 vs NAD 27 datums, geographic vs projected coordinates.
Customizing the GUI How to add/remove buttons from the GUI.
Scripts How to load and run them.
Extensions Available extensions, how to load them, get them, use them, and activate them.
Importing E00 files How to take and Arc Info file (E00 extension) and view it using the import utility.
Geoprocessing wizard How to use the extension, some of the uses.
The MassGIS data viewer.
ArcView legend files, editing legends.
Layout document window creating maps for printing.

Data Models: Vector and Raster.

Vector geographic features points, lines, and polygons.

Raster continuous geographic phenomenon such as elevation, images, grid data.

Image data is in raster form, many types of image data BMP, BIL, IMG, JPG, SID, TIF. In order to view image data in real world coordinates you need the world file to register the image (first and last letters of the image extension followed with a "w" such as BPW or TFW for Bitmap and Tif files.

Coverages spatial data structure used in ARC/INFO, attribute data is stored in the INFO directory.

Shapefiles a data structure developed by ESRI for ArcView (desk top) GIS. Shapefiles are easier and faster to draw and can be edited (coverages cannot). Shapefiles are composed of at least three files: *.shp (stores the feature geometry), *.shx (stores the index coordinates to the geometry), and *.dbf (dBASE file that stores the attribute information of features). Additionally, you may see several other files with the same file name such as *.sbn and *.sbx (spatial indexes), *.prj (stores the projection and datum of the shapefile very good to have if exchanging the data or using with a GPS such as ArcPAD).

ArcView Project Files - *.apr contains a collection of AV documents (views, scripts, layouts, etc.). The APR file does NOT contain the data (Shapefiles), it is simply a text file that contains the settings, paths, etc. Each document type has different graphical user interfaces (GUI). You can edit APR files with any text editor such as MS word or word pad to change paths.


The main Arc View project window.

View Document Window used to display and query spatial data and typically contains multiple THEMES (shapefiles, coverages, images) that are in the same geographic projection.


Arc View's VIEW document window.

Theme Properties Window A set of geographic features of similar type (point, poly, line).


Theme properties window, to open make the theme active and click the Theme-Properties in the menu.

Table Document Window   Attribute data is displayed, queried, and edited through the table document. The data is stored in the shapefiles dBASE table (*.dbf file). A table file contains a number of records, one for each feature, and a series of fields, one for each attribute.


Table Document Window, this table is the attribute table for the MA Towns theme.

Attribute data formats dBASE (*.dbf use dBASE IV), text (*.txt use tab or comma delimited), relational database (INFO, ORACLE, SQL). Most of these formats can be exported and edited with excel (use excel 2000) or access. Always make backups when editing these files!

Table Limits and Structure Maximum of 4 billion records. Null values are usually represented by zeros. A dBASE (IV) file can contain a maximum of 255 fields. Field names are limited to 10 characters, must start with a letter, and contain only these characters: A-Z, numbers, and _. A string field (words) can contain a maximum of 254 characters. A number field has a maximum of size of 16 characters. Boolean fields are used for queering and contain true/false (yes/no) characters.

Date Fields AV 3.2 supports date ranges from 4715BC to 9999 AD. The date field format used for AV is the following: yyyymmdd so for today, December 9, 2002 the field would be 20021209.

Editing Tables and Adding Fields To edit a table open the table document, select the table menu and click the start editing selection. The Edit button has choices to add fields, delete fields, delete records, etc. When finished remember to select "Table Stop Editing" and save edits. A common field to add to a polygon theme is one for the acreage of each polygon record, here is the procedure to add an Acre field, and use the Field Calculator to calculate the acres:

Here is the original attribute table for the Marshfield General Soil Map. Notice there are only four fields; shape, town, gsm, geology.

Click the "Table" menu, then click "Start Editing". Next, click the "Edit" menu and select "Add Field".

Add two fields, one called Area (this will be used to calculate the area of each polygon in square meters), the other called Acres (for this field you will convert the Area field to acres using the conversion factor of 0.0002471 acres/sq. meters).


This is the Field Definition pop up type the name of the field (Area), the field type (number, string, etc. leave as number), leave the width and decimal to the default settings.

The new table should look like this, note two new fields are added (Area, Acres):

Now use the Field Calculator populate the values

First calculate the area of each polygon using the following formula (make the area field active): [Shape].ReturnArea (Note: the field calculator needs values typed in precisely - caps, spaces, etc.)


The area for each polygon should now appear in the table.

Next calculate the acres of each polygon (make the acres field active) using the following formula: [Area] *0.0002471


The table will now have the acres for each polygon:

Finally choose: Table-Stop Editing and save edits.

Adding an Event Theme Taking GPS Coordinates and Plotting Them as a Point Shapefile:

Be aware that there are scripts and extensions (GPStoSHP.ave) available to do this automatically for Garmin and PLGR GPS's. Here is how if you do not have them or want to create an event theme:

Get your data into a tab/comma delimited text file. Use Excel to create the file, add a header record for the coordinates Easting and Northing:


A screenshot of a tab delimited file, note is good practice to specify units for geo-tables (these coordinates are in UTM, elevation is in Feet).

  1. Once the file is set choose "File-Save As" and select the file type as a tab delimited text myfile.txt (bogutm.txt for this example) in the directory you will be working in.
  2. Load the text file to the Tables Document window in ArcView: Click on Tables then select "ADD"(make sure the "List Files of Type" box is selected for Delimited Text), navigate to the text file and select it (figure 1 below):
  3. Open the View Document window, click the View menu and select "Add Event Theme" (figure 2 below) a dialog box will appear with the text table you added and two drop down menus asking you to specify the X (Easting) and Y (Northing) fields (Figure 3 below). Click OK.
  4. The view should now show the waypoints plotted out in UTM coordinates. The point file will be called filename.txt (bogutm.txt for the example). This file is not a shapefile, to make it one select "Convert to Shapefile" under the Theme menu (Make the txt file active first).
  5. The shapefile just created is in UTM coordinates, most GPS units only record waypoints in UTM or Geographic Coordinates (Lat/Lon), not State Plane. To be able to plot the point file into Massachusetts data you will need to reproject the shapefile into State Plane coordinates using the projection utility.

   

    

Figure 1 (Step 3 above) Adding the text file to the Tables Document Window.

Figure 2 (Step 4 above) Adding an Event Theme from the View Document Window.


Figure 3 (Step 4 above) The Event Theme dialog box, select the fields with the X and Y coordinates.

ArcView Projection Utility Use this extension to reproject projections and convert datums (NAD 27 to NAD 83) and projections (UTM to State Plane). The projection utility extension must be loaded (File-Extensions-click the box for the projection utility). The utility takes a very long time to load and reproject data!

  1. The projection utility is located under the File menu, once it is running you will be prompted to complete a series of steps


Step 1
select the theme to be re-projected, note the coordinate system is unknown.


Step 2
Define the coordinate system of the shapefile, for our example the bogutm.shp file is in UTM coordinates which is Projected data (select the Projected box under "Coordinate System Type"). Under the drop down "Name" menu scroll to NAD-83 UTM Zone 19N (Eastern Massachusetts is in UTM Zone 19, west of Worcester County Massachusetts is in UTM Zone 18). Select "Meter"for units and click the next button. A pop-up box will ask you if you would like to define the coordinates, choose yes, this will generate a *.prj file which will store the coordinates.


Step 3
Define the Coordinate System of the new shapefile scroll to NAD 83 Massachusetts Mainland.


Step 4
Give the shapefile a name and select the folder. As a convention name the file with an SP to show it is in State Plain coordinates (NewshapeSP.shp). Click next another box will verify the re-projection data, click finish and wait. Once completed the program will ask you if you want to add the theme to the view. The data should now overlay onto the Ortho Images.

MORE TO COME