Introduction to Geographic Information Systems in Forest Resources
UW Home GIS@UW Search
Syllabus Schedule Class Meetings Assignments Course Data Internet Search

Current Grades

Contact Us CFR 590 Internet-only section Lab Locations  


Exercise: Data Export

Objectives: Export ArcView data to other formats.


Exporting grid themes to generic raster format
Exporting feature themes to ArcInfo generate format
Exporting tables
"Exporting" views and layouts


Exporting grid themes to generic raster format

  1. Open a new project (use the cfr250.apr project on the CD).

  2. Set the Working Directory to your Zip disk.

  3. Enable the Spatial Analyst Extension.

  4. From the File menu, select Export Data Source.

  5. Select ASCII Raster as the export file type.



  6. Select the dem theme from the CD and click OK.



  7. Call the new file pf_dem.asc.



    It will take several minutes to export this data set. This would be a good time to check your e-mail or buy a book on Amazon.

  8. Notice that there are now two new files in the output directory. These are the header and data files for the ASCII raster data set.



  9. Next, select File > Import Data Source to import the generic ASCII raster data set.



  10. Select the pf_dem.asc file that was just created.



  11. Name the new output grid pf_dem2.



  12. Click Yes for creating integer values. This will assign integer values to cells rather than floating-point (i.e., with decimal place values).



  13. Add the newly created grid theme to the view.



  14. Turn the theme on



    Note that the new grid's legend does not have decimal places. This is because the new grid is stored with integer values. Compare this to the original grid, which is stored with floating-point precision.

 

You have just exported an ArcInfo format grid to generic ASCII raster file format. The new file can be imported into ArcView or other GIS applications. The file can be shared across file systems without danger of corruption. This is frequently necessary if you are using another GIS that does not read the ArcInfo grid format. Most image processing or GIS applications can import the generic ASCII raster file. You could also use the generic binary raster format in the same way.


Exporting feature themes to ArcInfo generate format

To export features as ArcInfo generate files, it is necessary to use a sample script. Get the script by using help

Help >
   Find >
      view.shapetogenerate
      View.ShapeToGenerate (Sample Script)

 

  1. Copy the script contents (use the Edit > Copy from the menu).

    If ArcView help gives you trouble, get this copy of the script, open it in a text editor, and copy the script text.

  2. Open a new script in the ArcView project.

  3. Paste the contents of the sample script into the empty script document (using Edit > Paste).

  4. Compile the script by clicking the Compile button in the script GUI. Scripts must be compiled before they can be executed.

  5. Add the cfi point feature theme (from the CD:\packgis\forest directory) to the view, and make it the only active theme.

  6. Make sure the view is the active document. Switch to make the script the active document without clicking on any other windows, including the project window. Remember you can switch active windows by using the Window menu choice.

  7. Run the script by using the Run button .

  8. Specify an output directory and name for the generate file.



  9. Specify the ID field (choose <None> for auto-numbering of features; this will give each output point a unique ID value).



  10. When the process completes, you will have an ArcInfo format generate file.

  11. Open the generate file in WordPad, Word, or Notepad and examine the structure of the file. Each point has an ID value and a coordinate.

 

You have just exported a proprietary ArcInfo coverage to a generic ASCII format that can be used by a variety of other software. The generate format can be read by other GIS software, or can be handled through custom programs.


Exporting tables

  1. Open the theme table for the cfi theme.

  2. From the menu, choose File > Export.

  3. Select dBase format, and select a directory and file name for the new file.





  4. The new dBase table will consist of all the fields from the original table. Had there been a selection on the records, only selected records would be exported.

  5. Open the dBase file in Excel and examine its contents. When opening a dBase file in Excel, you will need to alter the Files of type control:





  6. Repeat the process, but create a Tab-delimited ASCII file instead. You can open this in Excel as well. You should notice a difference in field names; the dBase file may have truncated field names.

 

You have just exported a theme's table to dBase and generic ASCII files that can be used in a variety of other applications. In conjunction with the generate file created in the last step, you would be able to recreate a spatial data theme in other GIS software. This technique can be used if there is no common import-export method using proprietary data formats (such as shapefiles). Use this when you need to get data out of ArcView into Excel or any other tabular data management or database software.


"Exporting" views and layouts

Layouts and views can be saved as graphics files by selecting File > Export while a view or layout is active.

The files that are created from exporting views and layouts can be used in any application that supports these types of files:

Placeable Windows Metafile
Windows Metafile
Windows Bitmap
Encapsulated PostScript - New
Encapsulated PostScript - Old
Adobe Illustrator
CGM Binary
CGM Character
CGM Clear Text
JPEG

  1. Create a new view and add the streams, roads, and stands themes from the CD.

  2. From the File menu, select Export. Make sure the file type is Placeable WMF. In the Export dialog, navigate to your Zip disk. In the File Name control, enter stand_stream_road as the name of the Windows Metafile to create.



  3. Click Options and select the highest resolution value.



    Click OK.

  4. OK the Export dialog.

  5. Open Microsoft Word. Use the menu control Insert > Picture > From File and navigate to your Zip disk.



    Double-click the WMF file you just created. This will add it to your Word document.



    The Windows Metafile is a hybrid raster/vector format. If there are raster data sources in your WMF, that "layer" of the WMF will be represented as a bitmap. Any vector data sources in the WMF will be represented in the WMF as vector points, lines, and polygons. WMF is a good choice for export of vector graphics, because the crispness of the vector features is maintained in the graphic.

  6. If you still have time, experiment with exporting to different formats (Windows BMP, JPEG, etc.) and different export DPI resolutions. As you import these other graphics formats, you will see differences in image quality. Try resizing the graphics to see how this affects image quality.


Syllabus Schedule Class Meetings Assignments Course Data Internet Search

Current Grades

Contact Us CFR 590 Internet-only section Lab Locations  

 

The University of Washington Spatial Technology, GIS, and Remote Sensing Page is provided by the College of Forest Resources and the College of Ocean and Fisheries Sciences through Unit-Specific UIF. Site administrator: Phil Hurvitz.
Copyright © Phil Hurvitz, 1998-2003