GIF/PNG Rasterizer ReaderWriter

Licensing options for this format begin with FME Professional Edition.

The GIF/PNG Rasterizer Writer allows FME to be used to translate vector data on-the-fly for display in web browsers.

Client-side image maps may also be produced to provide clickable, intelligent images in the web browser. It also enables the FME to be used as a powerful gateway between vector geographic data and raster-based Geographical Information Systems (GIS).

In addition to GIF images, the GIF writer can be used to generate Portable Network Graphics (PNG) images.

PNG replaces the use of GIF in many situations. Support for PNG is discussed below, in the section entitled PNG Support. In general, comments regarding the GIF writer also apply to the PNG writer, as they are both in fact the same module.

The FME GIF writer does not use the patented Lempel-Ziv Welch (LZW) compression algorithm; therefore, the GIF images it produces are roughly 10 times larger than the corresponding PNG image.

Note: This writer only supports vector input data. To write GIF and PNG files from raster input data, see the GIF Reader/Writer and PNG Reader/Writer chapters.

Overview

Writer Overview

The FME GIF writer creates a single GIF image and draws points, lines, and polygons into it. The file name, window, size, background, color table, transparency, and interlacing of the output image are all determined by mapping file settings. Each feature written to the image contains special attributes used to determine the appearance of the feature.

Feature types in GIFs are color entries. The color table entries are defined in GIF_DEF statements. All GIF features with the specified color name are drawn in that color.