6.2. Installing Data Management Tools: GDAL and FWTools

 < Day Day Up > 

If you examine the contents of the data folder you will find 49 files. These are map data files in ESRI shapefile format and GeoTIFF images. To learn more about them, you will use a tool from the GDAL project. GDAL comes bundled with the FWTools package, as does the OpenEV viewer and other utilities used in this book.

You can acquire the latest version of FWTools for your operating system or distribution from http://fwtools.maptools.org/. Examples used in this book are for the Linux operating system, but for Windows users, I have included notes where steps or usage varies.


Windows users

FWTools comes as an installation/setup file. First, download and execute the file. It should walk you through the setup steps. The setup program should place an FWTools Shell icon on your desktop. Launching this icon gives you a command prompt window for running FWTools commands.


Linux users

First, download the most recent tarball version of FWTools (e.g., FWTools-linux-0.9.8.tar.gz), and unzip/untar it into any folder you have handy. Linux users will be working from the command prompt/shell console to enter commands.

Now, open a console, and move into the folder that the file was saved in. This can be done using the cd command followed by the path to the folder. You can unzip the file by running:

     > tar -xzvf FWTools-linux-0.9.8.tar.gz. 

Run the installer by typing ./install.sh. This prepares the installation and creates a folder called bin_safe. Now, run the command:

     > . /fwtools_env.sh 

(Note the space after the period.) This command loads all the environment variables and settings, even though it might appear to not do anything. You are now ready to use FWTools commands.

You will be running some of programs to manipulate, examine, and convert the MapServer demo data. In the examples, commands that you type are prefixed by the greater than symbol, >. This isn't part of the command and isn't typed, but it indicates that everything after it is. The > symbol is how the command prompt tells you it is ready for another command. The command prompt symbol varies depending on operating system.

     < Day Day Up > 


    Web Mapping
    Web Mapping Illustrated: Using Open Source GIS Toolkits
    ISBN: 0596008651
    EAN: 2147483647
    Year: 2005
    Pages: 138

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net