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.
典型用途
- 准备用于web地图应用程序的光栅数据
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).
可能会为某些项目指定瓷砖尺寸平铺方案. 在重采样期间,可以使用各种方法来插值像素值。
属性可以添加到输出平铺中,以记录缩放级别、平铺位置、原始光栅索引、生成的平铺数量和四键(用于基于四叉树的平铺方案)。
此转换器不受光栅标注栏和/或调色板选择的影响。
平铺方案
Reference
方案 |
Used for |
Projection* |
Tile Size |
Zoom Levels |
||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
谷歌地图兼容 | Google Maps, Bing Maps, Web Map Tile Service, and ArcGIS. | EPSG:3857(球形墨卡托) | 256x256像素 | 0到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.
Level examples
GoogleMapsCompatible缩放级别0平铺(列、行): GoogleMapsCompatible zoom level 1平铺: GoogleMapsCompatible zoom level 3平铺: |
||||||||||||||||||||||||||||||||||||||||||||||||
GoogleCRS84Quad | Web地图平铺服务 | 第84页 | 256x256像素 | 0到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. |
||||||||||||||||||||||||||||||||||||||||||||||||
GLOBALCRS844标度 | Web地图平铺服务 | 第84页 | user-defined | 0到20 | ||||||||||||||||||||||||||||||||||||||||||||
Spacing is defined in degrees for each level.
Spacing Table
|
||||||||||||||||||||||||||||||||||||||||||||||||
GLOBALCRS84像素 | 第84页 | user-defined | 0到17 | |||||||||||||||||||||||||||||||||||||||||||||
此方案为每个标高定义了以度为单位的间距,如下所示:
Spacing Table
|
*不在所需投影中的输入光栅将在进行平铺之前由变压器重新投影。
在本例中,我们准备了一张4800 x 4000的温哥华正射影像(分辨率为1米),供谷歌地图使用。源图像是单个GeoTIFF。请注意,投影是UTM83-10-变压器需要在重新采样和平铺之前重新投影它。
The raster is routed into a WebMapTiler.
In the parameters dialog, we choose GoogleMapsCompatible as ourTile Scheme.
请注意Zoom Levelshave been left blank. The transformer will calculate the appropriate minimum and maximum levels that can be produced from the input raster.
The zoom levels, as well as the size and position of the tiles for each level, are fixed by Google Maps. The WebMapTiler will adjust the output rasters to fit into these standards.
共有740块瓷砖是由原厂生产的。可以使用统计计算器.
请注意,只生成了5到17级的缩放级别(在所有可能的级别中,从0-整个地球-到23-给定原始图像大小和分辨率的最小可能覆盖区域)。
缩放级别10
检查zoom level 10的单个平铺输出,注意添加的新属性,包括平铺位置、缩放级别、quadkey(由Google Maps使用)等。
原始光栅的范围完全位于此标准平铺的大小和位置范围内,因此光栅已填充空白单元格。
A close view of the portion of the raster containing the original shows the resampling to an appropriate (lower) resolution.
缩放级别15
为zoom level 15制作了42块瓷砖。
仔细观察选定的平铺可以清楚地看到,更高的缩放级别保留了更高的分辨率。
Usage Notes
若要使用缩放级别和位置(这些缩放级别和位置与这些web映射平铺方案之一无关)对光栅重新采样,请考虑使用雷斯特金字塔.
- 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雷斯特检查器after the WebMapTiler, but prior to the operation that changes the order.
- 当磁贴包含原始光栅覆盖范围以外的区域时,可以向磁贴添加一个alpha带来标识这些区域。如果不需要此带,可使用RasterInterpretationCoercertransformer.
选择光栅变压器
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 combing raster with vector data.
有关光栅几何和属性的信息,seeRasters (IFMERaster).
Working with Rasters
RasterCellOriginSetter | Sets the raster's cell origin. |
光栅卷积器 | Applies a convolution filter (sometimes called a内核或lens) to raster features and outputs the results. |
光栅表达式求值器 | 计算光栅或光栅对中每个单元格上的表达式,包括代数运算和条件语句。 |
RasterExtentsCoercer | Replaces the geometry of input raster features with a polygon covering the extents of the raster. |
RasterGCPExtractor | 从光栅要素中提取坐标系和地面控制点(GCP),并将其显示为属性。 |
光栅光栅 | Sets the Ground Control Points (GCP) on a raster with the specified Column (pixel), Row (line), X Coordinate, Y Coordinate and Z Coordinate. |
光栅参考器 | 使用指定的参数对光栅进行地理参照。 |
拉斯特希尔斯哈德 | Generates a shaded relief effect, useful for visualizing terrain. |
RasterInterpretationCoercer | 使用指定的转换选项更改输入要素上光栅几何图形标注栏的基本解释。 例如,具有三个解释波段(UInt16、Gray8和Real64)的输入光栅要素可以在一次操作中转换为具有三个解释波段(Red8、Green8和Blue8)或四个解释波段(Red16、Green16、Blue16和Alpha16)的光栅要素。 |
RasterMosaicker | 将多个光栅要素合并为单个光栅要素。 |
RasterPropertyExtractor | Extracts the geometry properties of a raster feature and exposes them as attributes. |
雷斯特金字塔 | 根据最小输出光栅的层数或尺寸,将光栅重采样为多个分辨率。 |
RasterResampler | Resamples rasters, based on specified output dimensions, cell size in ground units, or percentage of original, and interpolates new cell values. |
RasterRotationApplier | Applies the raster rotation angle on the input raster properties to the rest of the raster properties and data values. The expected input is a raster with a non-zero rotation angle and the expected output is a rotated raster with a rotation angle of 0.0. It is expected that the input raster properties will be modified to conform the output raster properties for a raster rotated by the given angle. 应用旋转角度主要是为了与无法处理旋转角度的其他处理和写入程序兼容。 |
光栅 | Clips raster features using pixel bounds instead of ground coordinates, and optionally adds cells around the perimeter. |
RasterTiler | Splits each input raster into a series of tiles by specifying either a tile size in cells/pixels or the number of tiles. |
RasterToPolygonCoercer | Creates polygons from input raster features. One polygon is output for each contiguous area of pixels with the same value in the input raster. |
WebMapTiler | Creates a series of image tiles that can be utilized by web mapping applications such as Bing™ Maps, Google Maps™, or Web Map Tile Service. This is done by resampling rasters to various different resolutions and then splitting them into tiles. |
Working with Bands
皮疹 | 向光栅要素添加新标注栏。 |
RasterBandCombiner | 将重合的光栅要素合并到单个输出光栅要素中,保留并附加所有标注栏。 |
RasterBandInterpretationCoercer | Alters the interpretation type of individual raster bands, converting cell values if necessary. |
捕猎者 | Removes all unselected bands from a raster feature. |
RasterBandMinMaxExtractor | Extracts the minimum and maximum band values, palette keys, and palette values from a raster feature, and adds them to a list attribute. |
光栅尺 | 设置光栅上选定标注栏的标注栏名称,使光栅内容比标注栏编号更易于理解。 |
RasterBandNodataRemover | Removes the existing nodata identifier from selected bands of a raster feature. Any values previously equal to the nodata value are considered valid data. |
RasterbandNodeSetter公司 | Sets a new nodata value on selected bands of a raster feature. |
光栅排序器 | 指定光栅中所需的标注栏顺序。波段根据输入波段索引重新排序。 |
RasterBandPropertyExtractor | Extracts the band and palette properties of a raster feature and exposes them as attributes. |
RasterBandRemover | Removes any selected bands from a raster feature. |
光栅带分离器 | Separates bands or unique band and palette combinations, and outputs either individual raster features or a single new raster feature containing all combinations. |
RasterStatisticsCalculator | 计算光栅标注栏的统计信息,并将结果作为属性添加。 |
使用单元格
RasterAspectCalculator | Calculates the aspect (direction of slope) for each cell of a raster. Aspect is measured in degrees from 0 to 360, clockwise from north. |
拉斯特塞勒 | 为光栅中的每个单元创建单独的点或多边形,可以选择将标注栏值提取为z坐标或属性。 |
RasterCellValueCalculator | 对一对光栅的单元格值进行基本算术、最小值、最大值或平均值运算。 |
RasterCellValueReplacer | Replaces a range of band values in a raster with a new single value. |
RasterCellValueRounder | 舍入光栅单元值。 |
RasterSingularCellValueCalculator | Performs basic arithmetic operations on the cell values of a raster against a numeric value. |
光栅计算器 | 计算光栅每个单元的斜率(以z为单位的最大变化率)。 |
Working with Palettes
RasterPaletteAdder | 从一个属性创建一个调色板,这补充道palette to all selected bands on a raster. |
RasterPaletteExtractor | 创建光栅上现有选项板的字符串表示形式,并将其保存到属性中。 |
光栅发生器 | Generates a palette out of the selected band(s) of a raster. The output raster will have the selected band(s) replaced by a new band with a palette. |
RasterPalette解释强制器 | 更改光栅选项板的解释类型。 |
RasterPaletteNodataSetter | 标识与光栅标注栏的nodata值匹配的调色板键,并在其上设置值。 |
RasterPaletteRemover | 从光栅要素中删除选定的选项板。 |
锉刀 | Resolves the palette(s) on a raster by replacing cell values with their corresponding palette values. Palette values with multiple components, such as RGB, are broken down and the individual values assigned to multiple, newly-added bands. |
Workflow Control
雷斯特检查器 | 在光栅处理中设置一个检查点,强制立即执行以前的处理。完成后,它会将当前状态保存到磁盘。 |
雷斯特消费者 | Requests the tile(s) from the raster geometry but no actual operations are performed on the tile(s). |
RasterExtractor | Serializes the geometry of the feature into the Blob Attribute based on the selected writer format. |
Rasternumeric创建者 | Creates a feature with a raster of the specified size with a numeric value and sends it into the workspace for processing. It is useful for creating a very large image with a user-specified width and height. |
拉斯特雷普莱瑟 | 将要素的几何图形替换为水滴属性中保留的几何图形。将根据选定的光栅格式对blob进行解码。 |
RasterRGBCreator | 使用具有RGB值的指定大小的光栅创建要素,并将其发送到工作空间进行处理。 |
RasterSelector | Selects specific bands and palettes of a raster for subsequent transformer operations. |
Vectors and Rasters
成像光栅 | 创建矢量或点云输入要素的光栅表示,在矢量要素的实心背景填充上使用fmeèu颜色属性。可以使用点云的颜色或强度组件渲染点云。 |
NumericRasterizer | Draws input point, line and polygon features onto a numeric raster filled with the background value. The Z coordinates of the input vector features are used to generate pixel values. Features without Z coordinates will be discarded. |
MapnikRasterizer | Generates a raster from input vector and raster features, with fine control over symbolization and labeling, using the Mapnik toolkit. |
PointOnRasterValueExtractor | Extracts the band and palette values from a raster at the location of one or more input points and sets them as attributes on the feature. |
矢量光栅叠加器 | 将矢量或点云要素栅格化到现有栅格上。对于矢量特征,“fmeèu颜色”属性设置像素颜色,可以使用其颜色或强度分量渲染点云。 |
配置
Input Ports
This transformer accepts only raster features.
Output Ports
具有附加属性的平铺,根据选定的平铺方案和其他参数生成。
参数
Tile Scheme | 选择平铺数据的方法。选择包括:
看到了吗平铺方案above for more detail. |
这些参数指定将为其生成平铺的缩放级别。有效值因时间而异Tile Scheme- see平铺方案above for more detail.
如果这些值留空,转换器将根据输入光栅计算适当的缩放级别范围。
最小缩放级别 | (Optional) Specify the minimum zoom level to be generated. If Minimum Zoom Level is unspecified, the minimum zoom level will default to the minimum level at which the raster is visible. Note that tiles will not be generated if the input raster covers less than 1 row and 1 column at a particular zoom level, regardless of the minimum zoom level value. |
最大缩放级别 | (Optional) Specify the maximum zoom level to be generated. If Maximum Zoom Level is unspecified, the maximum zoom level will be the smallest zoom level such that the resampled raster has more rows or columns than the original raster. |
这些参数为支持用户定义大小的磁贴方案指定每个输出磁贴的大小。
列数 | 以单元格(像素)为单位指定所需的平铺宽度。 |
行数 | 以单元格(像素)为单位指定所需的平铺高度。 |
插值类型 | 单元值被插值以产生各种光栅大小和分辨率。选择方法:
|
如果指定了属性名称,则会向输出平铺光栅添加新属性。
四键属性 | If specified, an attribute will be added to each output feature specifying the quadkey for that tile. Quadkeys are used by Bing Maps to uniquely identify a single tile at a particular level of detail. Note that this attribute will only be created for quad-tree based tile schemes (GoogleMapsCompatible and GoogleCRS84Quad). |
缩放级别属性 | If specified, an attribute will be added to each output feature specifying the zoom level of that tile. |
平铺列属性 | If specified, an attribute will be added to each output feature specifying the column of that tile. |
Tile Row Attribute | 如果指定,将向每个输出特征添加一个属性,指定该平铺的行。 |
Raster Index Attribute | 如果指定,将向每个输出要素添加一个属性,该属性标识从哪个光栅创建该要素。 此索引是基于零的,因此从第一个输入光栅创建的所有分幅的值都是0,从第二个输入光栅创建的所有分幅的值都是1,以此类推。 |
平铺数属性 | 如果指定,将向每个输出特征添加一个属性,标识从输入光栅创建的所有缩放级别的平铺总数。 |
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作空间中的其他元素来指定转换器参数。更高级的功能,如高级编辑器和算术编辑器,也可以在一些变压器。要访问这些选项的菜单,请单击在适用参数旁边。有关详细信息,请参阅Transformer Parameter Menu Options.
Defining Values
有几种方法可以定义要在转换器中使用的值。最简单的方法是简单地键入一个值或字符串,其中可以包括各种类型的函数,如属性引用、数学和字符串函数以及工作区参数。有许多工具和快捷方式可以帮助构造值,通常可以从值字段旁边的下拉式关联菜单中获得。
Using the Text Editor
文本编辑器提供了一种从各种数据源(如属性、参数和常量)构造文本字符串(包括正则表达式)的方便方法,其中结果直接用于参数内部。
使用算术编辑器
The Arithmetic Editor provides a convenient way to construct math expressions from various data sources, such as attributes, parameters, and feature functions, where the result is used directly inside a parameter.
条件值
根据设置值on one or more test conditions that either pass or fail.
Parameter Condition Definition Dialog
Content
Expressions and strings can include a number of functions, characters, parameters, and more - whether entered directly in a parameter or constructed using one of the editors.
这些函数操作和格式化字符串。 | |
A set of control characters is available in the Text Editor. | |
Math functions are available in both editors. | |
These operators are available in the Arithmetic Editor. | |
这些返回主要具有特定的值。 | |
FME and workspace-specific parameters may be used. | |
使用用户参数 | Create your own editable parameters. |
Reference
Processing Behavior |
|
特征保持 |
不 |
依赖关系 | 不ne |
FME许可级别 | FME专业版及以上 |
别名 | VirtualEarthTiler |
历史 | This transformer was previously named the VirtualEarthTiler. |
类别 |
FME Community
The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
搜索关于WebMapTiler的所有结果关于FME社区。亚搏国际在线官网
Examples may contain information licensed under the Open Government Licence – Vancouver