FME Transformers: 2024.2

Categories
Cartography and Reports
Format Specific
Rasters
Web

Web

Related Transformers
Clipper
RasterMosaicker
RasterPyramider
RasterSubsetter
Tiler

WebMapTiler

Creates series of raster tiles for use in web mapping applications such as Bing™ Maps, Google Maps™, or Web Map Tile Service. Tiles are produced at varying zoom levels, size, and resolution.

Jump to Configuration

Typical Uses

  • Preparing raster data for use in a web mapping application

How does it work?

The WebMapTiler accepts raster features, and "pyramids" them - resampling and tiling them as necessary to produce a set of raster tiles appropriate for different zoom levels as required by various web mapping tile schemes.

The minimum and maximum zoom level may be specified, or left unset to produce the minimum and maximum level supported by the resolution and size of the input raster(s).

Tile size may be specified for some Tile Schemes. Various methods are available for interpolation of pixel values during resampling.

Attributes may be added to the output tiles to record zoom level, tile position, original raster index, number of tiles produced, and Quadkey (used for quad-tree based tile schemes).

This transformer is unaffected by raster band and/or palette selection.

Tile Schemes

Reference

Scheme

Used for

Projection*

Tile Size

Zoom Levels

GoogleMapsCompatible

Google Maps, Bing Maps, Web Map Tile Service, and ArcGIS.

EPSG:3857 (Spherical Mercator)

256x256 pixels

0 to 23

 

At level 0, the entire world is represented by a 256x256 pixel tile. Each level increases the number of rows and columns by a factor of two: level 1 is 512x512, level 2 is 1024x1024, and so on. The number of tiles is increased accordingly - 1 tile, 4 tiles, 16 tiles, and so on.

GoogleCRS84Quad

Web Map Tile Service

LL84

256x256 pixels

0 to 18

 

At level 0, the entire world is represented by a 256x256 pixel tile (where the first and last 64 rows of the tile are blank). Each level increases the number of rows and columns by a factor of two: level 1 is 512x512, level 2 is 1024x1024, and so on.

GlobalCRS84Scale

Web Map Tile Service

LL84

user-defined

0 to 20

 

Spacing is defined in degrees for each level.

GlobalCRS84Pixel

 

LL84

user-defined

0 to 17

 

This scheme defines a spacing in degrees for each level, as follows:

*Incoming rasters that are not in the required projection will be reprojected by the transformer before tiling is carried out.

Examples

Usage Notes

  • To resample rasters using zoom levels and positions that are not tied to one of these web mapping tile schemes, consider using the RasterPyramider.
  • Attributes can be used for output file naming - for example the output feature type name can be set to the Quadkey attribute value.
  • Generally, when writing out the rasters generated by this transformer, one would set the destination feature type name to be the quadkey value for Bing Maps or a combination of the zoom level, tile column, and tile row for Google Maps. The PNGRASTER writer is recommended for the best results.
  • For best performance, rasters output by this transformer should be written in the order they are output. Changing the order (for example, by using Dataset Fanout or a Sorter transformer) may negatively impact performance. Alternatively, use a RasterCheckpointer after the WebMapTiler, but prior to the operation that changes the order.
  • When a tile contains areas outside the original raster coverage, an alpha band may be added to the tile to identify these areas. If this band is not desired, it may be removed with the RasterInterpretationCoercer transformer.

Choosing a Raster Transformer

FME has an extensive selection of transformers for working with raster data. They can be generally categorized as working with whole rasters, bands, cells or palettes, and those designed for workflow control or combining raster with vector data.

For information on raster geometry and properties, see Rasters (IFMERaster).

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies None
Aliases VirtualEarthTiler
History This transformer was previously named the VirtualEarthTiler.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the WebMapTiler on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.