Formatting
Spatial Data with ArcView GIS® (3.x) for use in WMS
Once spatial data are
obtained, they often need to be formatted further before they can be used
in WMS or GIS. Listed below are common formatting tasks used with
WMS. Three common formatting scenarios are listed below:
How
do I use ArcView GIS to convert data into a different coordinate system?
How
do I use ArcView GIS to clip out a watershed from spatial data?
How
do I use ArcView GIS join the hydrologic soil group attribute to an EPA
soil type shapefile?
How
to Use ArcView GIS to Convert Data into a Different Coordinate System
-
Start ArcView GIS. Click 'Cancel' to
the 'Welcome to ArcView GIS' dialog if it comes up.
-
From the File pull down menu, choose
New
Project.
-
Make sure "Views" is selected in the project
dialog box and click the New button. A new view titled "View1"
will appear.
-
Enlarge the "View1" window to a larger and
convenient size, but make sure not to block out the project dialog box.
-
Click on the "Add Theme" button
.
-
Browse to the drive and folder where the data
shapefile (e.g., soil type or land use) is found.
-
Select it and click OK. A new theme
will appear on the left side of "View1". Turn the theme "on" by clicking
a check mark into the small gray box next to it so that the data appears
in the window (see Figure 1). If you move the mouse pointer over
the data, you will notice the (x,y) coordinates at the top right corner
of the ArcView screen. The coordinates will probably be in decimal
degrees for latitude and longitude.
-
From the File pull down menu, select
Extensions...
-
Scroll down the list and put a check mark
next to "Projector!". If you do not find this as one of the possible
extensions then you must copy this extension file (prjctr.avx) into ArcView's
extension's directory. For a typical ArcView 3.x setup you should copy
the prjctr.avx file found in the C:\ESRI\AV_gis30\ArcView\samples\ext to
C:\ESRI\AV_gis30\ArcView\Ext32. Of course ArcView may be installed
slightly differently on your system (D: rather than C:, or in a slightly
different sub directory). You may need to search for the prjctr.avx file.
Once the file is in the Ext32 directory it should appear in the scroll
down list of extensions.
-
Click OK.
-
Since the data theme should already be the
active theme, click the Projector tool button
near the top.
-
Choose the appropriate output units (e.g.,
meters).
-
Change the projection category and type as
appropriate. For example, you might want to change the category to
UTM 1983 and then change the type to Zone 12.
-
You may choose "Yes" to recalculate area,
perimeter, and length fields if you want to.
-
Click "Yes" when asked to add the projected
shapefile as a theme to the view.
-
Make sure you select "View1" since this is
the view you are using and click OK.
-
Give the new shapefile a filename and tell
ArcView where you want it saved to. Click OK.
-
Once back in View1, uncheck the original theme
and check the new theme that you just added.
-
Make the new theme active by clicking once
on its name next to the check mark.
-
Click the Zoom to Theme button
at the top. Your new shapefile should now appear in View1, and as
the mouse pointer moves over the data the coordinates displayed in the
upper-right corner of the screen should now be consistent with the new
coordinate system.
-
The new shapefile is now converted to the
correct coordinate system.
-
If you want you may save your project in ArcView
by choosing Save Project from the File pulldown menu, giving
the project a filename and location to be saved to, and clicking Ok.
Figure 1.
[back to top of
page]
[ GSDA home ]
Click here to go to a web-page that discusses how to use WMS to perform
coordinate conversions
How
to Use ArcView GIS to Clip Out a Watershed from Spatial Data
-
If you have correctly delineated a watershed
in WMS, you should convert the watershed boundaries to a polygon.
-
Export this polygon by choosing the Export
command the the File pull down menu.
-
Choose the Feature object polygons -> Shapefile
option.
-
Give your exported shapefile a name and choose
where it will be saved to. Click OK.
-
Start ArcView GIS. Click 'Cancel' to
the 'Welcome to ArcView GIS' dialog if it comes up.
-
From the File pull down menu, choose
New
Project.
-
With Views selected in the project
dialog box, choose the New button.
-
A new view named "View1" should open up.
Enlarge the "View1" window to a larger and convenient size, but make sure
not to block out the project dialog box.
-
Click the Add Theme button
.
-
Browse, locate, and select the watershed shapefile
you exported from WMS and click OK.
-
Make the theme visible by putting a check
mark next to the theme name in View1. The watershed boundaries should
appear (see Figure 1).
-
Repeat the previous three steps again and
load the data shapefile you are trying to clip (e.g., soil type or land
use).
-
Make the newly added theme visible as well
by putting a check mark next to its name in View1 (see Figure 2).
-
From the File pull down menu, choose
the Extensions.. option.
-
Scroll down through the list and put a check
mark next to Geoprocessing and click OK.
-
From the View pull down menu, choose
GeoProcessing
Wizard.
-
Choose the Clip one theme based on another
option and click Next.
-
The input theme should be the data source
shapefile (e.g., soil type or land use).
-
The polygon overlay theme should be the watershed
boundary shapefile you exported from WMS.
-
Specify a filename and location for the output
file to be saved.
-
Click the Finish button.
-
The new clipped theme will now be added to
View1.
-
Make the two original themes invisible by
removing the check mark next to their theme names in View1.
-
Make the new theme visible by checking the
box next to its name.
-
Make this theme is the active theme by clicking
once on its name next to the check mark.
-
Click the Zoom to Theme button
.
Your watershed boundaries with the data's polygons that cross it should
now be combined into one theme on the screen (see Figure 3).
-
If you want, save your project in ArcView
by choosing Save Project from the File pulldown menu, giving
the project a filename and location to be saved to, and clicking Ok.
Figure 1.
Figure 2.
Figure 3.
[back to top
of page]
[ GSDA home ]
How
to use ArcView GIS (3.x) to join the hydrologic soil group attribute to an EPA
soil type shapefile.
Since the EPA soil
type shapefile 'statsgo.shp' does not contain the attribute for hydrologic
soil group, it must be joined from the ArcView table file 'statsgoc.dbf'.
This is necessary before WMS can compute a composite curve number (CCN)
for a watershed.
-
Start ArcView GIS. Click 'Cancel' to
the 'Welcome to ArcView GIS' dialog if it comes up.
-
From the File pull down menu, choose
New
Project.
-
Make sure "Views" is selected in the project
dialog box and click the New button. A new view titled "View1"
will appear.
-
Enlarge the "View1" window to a larger and
convenient size, but make sure not to block out the project dialog box.
-
Click on the "Add Theme" button
.
-
Browse to the drive and folder where the soil
type shapefile is found. Select it and click OK.
-
A new theme will appear on the left side of
"View1". Turn the theme "on" by clicking a check mark into the small
gray box next to it so that the soil type data appears in the window (see
Figure 1).
-
Click the Open Theme Table button
at the top. The theme table for 'statsgo.shp' will appear.
-
In the project dialog box, select Tables
from the list.
-
Click the Add button.
-
Browse to the drive and folder where the table
'statsgoc.dbf' is found. Select it and click OK.
-
With the 'statsgoc.dbf' table window active,
click once on the field "Muid" found at the top so that it is highlighted.
-
Click on the top bar of the "Attributes of
Statsgo.shp" window to make it active. Also click once on the field
"Muid" found at the top so it is highlighted.
-
From the Table pull down menu, choose
Join
(see
Figure 2). The window for 'statsgoc.dbf' will disappear.
-
You've now successfully joined the hydrologic
soil group attribute to your soil type shapefile.
-
Make the "View1" window active by clicking
somewhere on the top bar.
-
With your projected and joined soil type theme
still active, choose the Convert to Shapefile... command from the
Theme
pulldown menu. Give this new shapefile a name and save it to your
disk.
-
If you want, save your project in ArcView
by choosing Save Project from the File pulldown menu.
Give the project a filename and location to be saved to, and clicking Ok.
Figure 1.
Figure 2.
[back to top of
page]
[ GSDA home ]