2DGridCreator
Creates a grid of two-dimensional point or polygon features, at the origin and using the offsets specified. Each created feature will have a row and column attribute that indicates its position in the grid.
Input Ports
This transformer does not accept any input.
Output Ports
The grid of point or polygon features.
Note that the same number of features will be output whether points or polygons are requested. Therefore, the bounds of the output will be smaller for a point grid than for a polygon grid. For instance, the width of the bounding box of a polygon grid will be (Number of Columns) * (Column Width), whereas the width of the bounding box of a point grid will be (Number of Columns – 1) * (Column Width).
Parameters
The starting corner of the grid. The possible values are:
- Lower Left
- Upper Left
- Lower Right
- Upper Right
The Starting X Coordinate and Starting Y Coordinate parameters specify the origin for the starting corner of the grid as a whole.
The Starting X Coordinate and Starting Y Coordinate parameters specify the origin for the starting corner of the grid as a whole.
The Number of Columns parameter specifies the number of features (points or polygons) each row of the grid will have. This must be at least one.
The Number of Rows parameter specifies the number of features (points or polygons) each column of the grid will have. This must be at least one.
The Column Width and Row Height parameters specify in ground units the distance between output points in the grid or the width and height of the output polygons.
The Column Width and Row Height parameters specify in ground units the distance between output points in the grid or the width and height of the output polygons.
Choose point or polygon features.
Polygon features will be rectangular boxes with the specified column width and row height.
Choosing Points (Corners) will output a point for each of the corners of the cells in the grid. Points (Centers) will give a point for the middle of each cell.
Note that there will be an additional row and column output for Points (Corners) over the number that either Polygons or Points (Centers) will generate.
If Row Attribute is specified, an attribute will be added to each output tile that identifies the vertical position of that tile in the input raster. This index is zero-based, beginning at the specified Starting Corner.
If Column Attribute is specified, an attribute will be added to each output tile that identifies the horizontal position of that tile in the input raster. This index is zero-based, beginning at the specified Starting Corner.
This parameter allows you to set the coordinate system on the created features. Select a coordinate system from the pull-down list, or click the Browse button to select from the Coordinate System Gallery. If you leave this parameter blank, no coordinate system will be set on the features created by this transformer.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Community
Search for samples and information about this transformer on the FME Community.
Technical History
Associated FME function or factory: CreationFactory