TerrainExamples

This directory contains subdirectories that implement example
programs which use the AVDS Terrain Library (ATL) to convert
United States Geological Survey (USGS) terrain data into AVDS
format. Each directory contains a ReadMe.txt file to give 
specific information for that directory. The directories with 
source code were compiled using Microsoft Visual C++ (MSVC++)
and contain the MSVC++ project files used to build the executables.

NOTE: The functions contained in the ATL are defined in appendix D 
of the AVDS User Manual.

The sample programs uses USGS 1:250,000-Scale Digital Elevation 
Model (DEM) maps and 1:250,000-Scale Land Use and Land Cover (LULC) 
maps to create AVDS terrain maps. These files were obtained from:

	edcwww.cr.usgs.gov/doc/edchome/ndcdb/ndcdb.html

The steps used to convert the data are:

1)  Convert the LULC Composite Theme Grid (CTG) grid cell data to 
    AVDS color file format using "CTG2AVDS.exe".

2)  Convert the DEM data to AVDS elevations using "USGS2AVDS.exe".

3)  Create the AVDS terrain files "ProcessColorElevation.exe".
    NOTE: This creates many files with extensions "_0" through "_5".
          These are the AVDS terrain files.

4)  (Optional) Create a image (bitmap->bmp) using "AVDS2Bmp.exe"; 

For example:

	CTG2AVDS.exe grid_cell.goldfield
	USGS2AVDS.exe goldfield-e
	USGS2AVDS.exe goldfield-w
	ProcessColorElevation.exe -118.0 -116.0 37.0 38.0 1
	AVDS2Bmp.exe -118.0 -116.0 37.0 38.0 goldfield.bmp

	NOTE: Since each step generates intermeadiate files that are
              used by other steps, each step must use the same default 
              directory as the other steps.





