Skip to main content

Create Fishnet by Cell Height and Width

Description

In this function, the fishnet is defined by the user specified cell width and height. Cell height is defined along the height (shorter side) of the outline rectangle, while cell width is defined along the width (longer side) of the outline rectangle. The number of cells is calculated internally in a way to completely fill in the outline rectangle. That number is rounded up to the nearest integer. The consequence of this approach is that the resulting fishnet will be slightly larger than the extent of the outline rectangle. Following figures demonstrate this process and the final fitted fishnet. iRow and iColumn fields are created and populated in the resulting fishnet feature class.

Usage

The resulting fishnet feature class is stored in the same geodatabase/feature dataset as the input feature class if only the name of the resulting layer is provided, or in user specified location if full path is provided.

Parameters

Parameter NameTypeDirectionData TypeDialog Reference
Input feature classRequiredInputFeature LayerInput feature class. Can be of any type (point, line, polygon).
Input cell heightRequiredInputDoubleIn map units. This is the length of a row.
Input cell widthRequiredInputDoubleIn map units. This is the length of a column.
Output feature class nameRequiredOutputFeature LayerName of the output feature class. The fishnet feature class will be placed in the same location as input feature class if only the name of the resulting layer is provided, or in user specified location if full path is provided.