PNG Rasterizer Writer

FME Format Type Identifier

PNG

Reader/Writer

Writer

Raster/Vector

Vector

Typical File Extensions

.png

FME can translate vector data 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 FME to be used as a powerful gateway between vector geographic data and raster-based Geographical Information Systems (GIS).

The writer can be used to generate both GIF and Portable Network Graphics (PNG) images.

PNG replaces GIF in many situations. See the chapter GIF Rasterizer Writer for information on GIF support.

Notice: In general, information about the GIF Rasterizer writer also applies to the PNG Rasterizer writer, since they are both the same module.

Note: This writer supports only vector input data. To write GIF and PNG files from raster input data, see the GIF (Graphics Interchange Format) Reader/Writer and PNG (Portable Network Graphics) Reader/Writer.

PNG Rasterizer Product and System Requirements

Format

Product

Operating System

Reader/Writer

FME Desktop License

FME Server

FME Cloud

Windows

Linux

Mac

Writer

Available in FME Professional Edition and higher

Yes

Yes

64-bit: Yes

Yes

Yes

Overview

PNG is a graphic format which was designed from the ground up as an open source, standardized format unencumbered by some of the licensing issues that exist with the LZW compression method used by GIF. FME uses an RLE compression method for GIF output, which is equally unencumbered by licensing issues. PNG also adds a number of features over GIF, such as alpha channels, gamma correction, more advanced interlacing, and a greater variety of image depths. (However, FME does not currently take advantage of these features when writing.)

PNG images are currently handled natively by Microsoft® Internet Explorer 5 and above, Mozilla Firefox, and Opera. Other web browsers can access PNG images through the use of a browser plug-in, such as Apple® QuickTime® 41.

Other than the file extension, there are no differences in the workspace between PNG files and GIF files.

Writer Overview

The writer creates a single 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 in the workspace. Each feature written to the image contains special attributes used to determine the appearance of the feature.

Feature types are color entries. The color table entries are defined in the Feature Type dialog:

All features with the specified color name are drawn in that color.