2 Introduction-Images
2 Introduction-Images
v. 10.1
Objectives
Import various types of image files from different sources. Learn how to work with online maps in the
WMS interface. Register the images to a real-world projection and save an image world file. Learn about
and build image pyramids.
1 Introduction ......................................................................................................................... 2
1.1 Getting Started ............................................................................................................. 2
2 Geotiff Files .......................................................................................................................... 3
2.1 Tiling Images ............................................................................................................... 3
3 Online Images ...................................................................................................................... 3
3.1 Getting Online Images ................................................................................................. 4
3.2 Exporting Images ......................................................................................................... 5
4 World Files........................................................................................................................... 5
5 Image Resolution ................................................................................................................. 6
6 Building Pyramids ............................................................................................................... 7
7 Registering Scanned Images ............................................................................................... 8
7.1 Registering in Geographic Coordinates........................................................................ 9
7.2 Converting the Coordinates to UTM .......................................................................... 10
8 Conclusion.......................................................................................................................... 11
1 Introduction
Images are an important part of most projects developed using WMS. An image is
composed of pixels. The size and number of pixels in an image determines the level of
detail visible in the image.
WMS uses images to derive data such as roads, streams, confluences, land use, and soils,
as well as to provide a base map—or backdrop—to a watershed. Images must be
georeferenced in order to be useful in WMS. Georeferencing an image defines
appropriate x and y coordinates so that distances and areas computed from the image will
be accurate.
Because images are commonly used in Geographic Information System (GIS) programs
and modeling systems like WMS, data developers often store the georeferencing
information as either part of the image file (a geotiff file for example), or in a separate
file commonly referred to as a “world” file.
This tutorial gives an overview of the primary ways to import and georeference (or
register) images in WMS. Using geotiff files, online images, and world files will be
discussed and demonstrated. Image resolution, how building pyramids affects image
display, and registering scanned images will also be discussed and demonstrated.
5. On the Image Preferences tab in the Image Pyramids section, select “Always
Build” from the Image Pyramids drop-down.
6. In the TIFF→JPEG Conversion section, select “Always Convert” from the
Convert to JPEG drop-down.
7. Click OK to close the Preferences dialog.
Image pyramids allow the image to be displayed clearly at various resolutions.
2 Geotiff Files
Geotiff image files include georeferencing information. This means it is not necessary to
specify coordinates when images are read in because it is done automatically. Multiple
images can be tiled together and shown as a single image.
3 Online Images
WMS has tools for loading various types of online images from the internet that are both
high-quality and seamless (they do not contain collars). Online images require an internet
connection. This tool uses a web map service to download and view various types of
images in the WMS graphics window. These images are pre-registered to the display
projection (or if no data exists, the projection is set to the image's native projection) and
more than one online image can be imported at a time.
The advantages of online images are that they are seamless, data is available throughout
the world, and that they can be reprojected to the display projection without needing to
georeference the image. The disadvantage of online images is that the image can take
longer to refresh when zooming or panning the display in the graphics window.
1. Click Get Online Maps at the top of the WMS window to bring up the Get
Online Maps dialog (Figure 1).
2. While pressing Ctrl, select World Imagery and USA Topo Maps (scroll to the
right to locate this one).
3. Click OK to close the Get Online Maps dialog and load the World Imagery and
USA Topo Maps online maps into WMS.
The process of loading the maps may take a few minutes.
Notice that the online images are imported and displayed based on the current screen
coordinates. Notice that two new layers symbolizing online images are created for the
World Imagery and the USA Topo Map in the Project Explorer.
4. Turn off “ World Imagery” under the “ GIS Data” folder in the Project
Explorer.
5. Zoom into various areas of the USA Topo Maps image and compare it with
the topographic map image imported earlier in this tutorial.
Images can be turned off and on by unchecking the box next to the image in the Project
Explorer.
Notice that the display of the online images takes time to update when panning or
zooming in and out. As it is updating, a message of “(processing)” will be seen next to
the specific online map in the Project Explorer. The display takes time to update because
WMS downloads an updated image from the internet every time zooming in or framing
the image. While the image is downloading, it is possible to continue to work, but some
or all of the current view of the image may not be shown until the image is downloaded.
6. Frame the project.
This centers and redraws all the data in the graphics window so that all currently visible
objects fit and can be seen at once.
7. Turn on both “ USA Topo Maps” and “ World Imagery” in the Project
Explorer.
4 World Files
Many image files do not contain georeferencing information. For example, JPEG files do
not have georeferencing tags in the file like GeoTIFF images have. Most organizations
that make images available also distribute world files containing the georeferencing
information along with the image files. These world files usually have the same name as
the corresponding TIFF or JPEG file, but with the extension “.tfw” for TIFF files and
“.jgw” or “.jpgw” for JPEG files. If downloading a world file and asked to supply a name
for it, follow this naming convention. Use the following procedure to open a JPEG file
and its corresponding georeferencing information in WMS:
1. Select File | New .
2. Click No if asked to save changes.
3. Click Open to bring up the Open dialog.
4. Select “richfield1.jpg” image file and click Open to import the image and exit
the Open dialog.
Because there is a world file named “richfield1.jpgw”, the image is automatically
registered. If a world file for an image is not named with the TFW extension (or JGW or
JPGW extensions), there is an option to import the world file from within the
Registration dialog.
Properly georeferenced files overlap automatically, thereby avoiding tedious manual
tiling of the images). It is not necessary to be exact in obtaining images and files from a
source that distributes world files with images as; overlapping is not a problem.
5. Repeat steps 3-4 for “richfield2.jpg” and “richfield3.jpg”.
Feel free to use Zoom and Pan and turn the different images on and off to explore
how they can be viewed and used when overlapping.
Imagery can also be obtained using the Get Data From Map or the Get Data Tool
tools in WMS.
5 Image Resolution
Images are usually available in different resolutions. In this part of the exercise, different
topographic maps showing the same area at different resolutions will be opened.
1. Select File | New .
2. Click No if asked to save changes.
3. Select File | Open… to bring up the Open dialog.
4. Select “tm4m.jpg” and click Open to import the image and exit the Open dialog.
5. Zoom in on the image until the individual pixels of the image are visible.
6. Repeat steps 3-4 for “tm16m.jpg”.
7. Select Display | View | Previous View, or use the View Previous tool, to
switch back to the previous view.
8. In the Project Explorer, turn on and off “ tm16m.jpg” to see the difference in
resolution of the two images
Notice how much larger the individual pixels are in the “ tm16m.jpg” image.
9. Repeat steps 3-4 for “tm32m.jpg”.
10. Click View Previous to see the difference in resolution.
When zoomed in on the three images, as the map scale increased the map showed less
detail. “tm4m.jpg” shows much more detail than either “tm16m.jpg” or “tm32m.jpg”.
Images are commonly available on a scale of 1:24000, 1:100000, or 1:250000. 1:24000
maps cover far less area than 1:100000 or 1:250000 maps, but they show much more
detail (higher resolution). It would take thirty-two 1:24000 maps to cover the same area
that is covered by one 1:100000 map.
If great detail is needed for a watershed, use the 1:24000 maps. If the watershed is very
large, this size of map will provide too much detail. It would be difficult to see the big
picture of the watershed, and a 1:100000 or 1:250000 scale map may be more appropriate
in such a case.
6 Building Pyramids
WMS provides the option of building pyramids when each image file is opened. When
building pyramids, WMS saves multiple files of varying resolutions so that when a large
area of an image is viewed a lower—or less detailed—resolution image is displayed. A
higher—or finer—resolution image is displayed when zooming in to view a smaller
portion of the image. This is similar to an automatic resampling process. When image
pyramids are not built, only the original resolution image is displayed.
The advantages of building pyramids include faster and clearer display of an image. This
is due to lower resolution images being displayed for larger areas and higher resolution
images being displayed for smaller areas. The clarity of image display improves in
situations when the image resolution exceeds the display resolution of the screen. This
often occurs when viewing a large portion of a high resolution image.
Because WMS only builds pyramids for JPEG images, convert TIFF images to the JPEG
format in order to build pyramids. Image conversion can be performed by WMS when
opening the image or after opening the image. By default, WMS always builds pyramids
when a JPEG image is opened or created through conversion. However, this setting can
be changed. In order to best see the difference between images with and without
pyramids built, alter the default settings as follows:
1. Right-click in a blank space in the Project Explorer and select Preferences… to
bring up the Preferences dialog
2. On the Image Preferences tab in the Image Pyramids section, select “Prompt for
Each Image” from the Image Pyramids drop-down.
3. In the TIFF→JPEG Conversion section, select “Always Convert” from the
Convert to JPEG option is set to “Always Convert”.
4. Select “Temporary Folder” from the Save JPEG drop-down.
5. Click OK to save the preferences and close the Preferences dialog.
Now examine the differences between building and not building pyramids. Begin by
opening a 1:24000 USGS quadrangle map without building pyramids:
6. Select File | New .
7. Click No if asked to save changes.
8. Click Open to bring up the Open dialog.
An image representing soil types will appear in the Register Image dialog. Three small
red X's are marked on the image. Near each red X is a plus sign with a number “1”, “2”,
or “3” by it. Place the numbered plus signs over the small x’s and enter the appropriate
coordinates in order to register the image.
5. Using the Register Points tool, drag the plus sign mark (+) next to the “1”
over the nearby X.
6. Zoom in on the area to make sure the plus sign is directly over the top of the
X.
7. Repeat steps 5-6 for the number plus signs “2” and “3”.
8. When done, Frame the image.
8 Conclusion
This concludes the WMS “Introduction – Images” tutorial. The following key concepts
were discussed and demonstrated:
How to use geotiff files.
How to use online images.
How to use world files.
How different size files affect image resolution.
How to build pyramids.
How to register images.