Create Fishnet (Data Management) |
|
Release 9.3
Last modified March 8, 2012 |
![]() ![]() ![]() Print all topics in : "Tools" |
NOTE: This topic was updated for 9.3.1.
Creates a fishnet of rectangular cells
Learn more about how Create Fishnet works.
Usage tips
If 0 is specified for the Cell Size Width and the Cell Size Height, then specify the number of Rows and Columns and the opposite corner of the fishnet (X, Y).
The extent of the fishnet can be entered by specifying the coordinates or using a template dataset. When entering a template, the fishnet Origin Coordinate and Y-Axis Coordinate are populated. You will still be required to enter the number of rows and columns.
If 0 is specified for the Rows and Columns, then specify the opposite corner of the fishnet (X, Y).
If 0 is entered for the Cell Size Width or Cell Size Height, then it will be automatically computed based on the number of Rows and Columns and the opposite corner of the fishnet.
If you specify the Cell Size Width and Cell Size Height and enter 0 for Rows and Columns, you will be required to enter the opposite corner of the fishnet. The specified Cell Size Width and Cell Size Height will be used to automatically calculate how many Rows and Columns can fit within the area defined by the origin and the opposite corner of the fishnet without exceeding the corner coordinates.
The Cell Size Width and the Cell Size Height are expressed in the same units as defined by the output feature class. For example, a cell size of 0.5 is half of a degree in geographic but 0.5 meters in UTM.
Labels are generated by default. A new feature class is created with label points created at the center of each fishnet cell. This feature class is created in the same location as the output feature class. The name of this feature class is the same name as the output feature class with a suffix of _Labels.
To generate polygon features from the line features, you must use the Feature To Polygon tool.
The following environment settings affect this tool: Extent, M Domain, Configuration Keyword, Coordinate System, Output has M Values, Output Spatial Grid, Output has Z Values, Default Z Value, Output XY Domain, and Output Z Domain.
Command line syntax
An overview of the Command Line window
CreateFishnet_management <out_feature_class> <origin_coord> <y_axis_coord> <cell_width> <cell_height> <number_rows> <number_columns> {corner_coord} {LABELS| NO_LABELS} {template}
Parameter | Explanation | Data Type |
<out_feature_class> |
The output feature class containing the fishnet of rectangular cells. |
Feature Class |
<origin_coord> |
The fishnet origin is the lower left corner of the fishnet set by an X-Coordinate and Y-Coordinate. |
Point |
<y_axis_coord> |
The y-axis coordinate is a point on the positive y-axis from the origin point and is used to orient the fishnet. |
Point |
<cell_width> |
The cell size width refers to the size of the cells in the x-coordinate position. |
Double |
<cell_height> |
The cell size height refers to the size of the cells in the y-coordinate direction. |
Double |
<number_rows> |
The number of rows used with the cell size to determine the size of the fishnet. |
Long |
<number_columns> |
The number of columns used with the cell size to determine the size of the fishnet. |
Long |
{corner_coord} |
The opposite corner of the fishnet is the upper right corner of the fishnet set by an X-Coordinate and Y-Coordinate. |
Point |
{LABELS| NO_LABELS} |
Specify whether or not a point feature class will be created containing label points at the center of each fishnet cell. Labels are generated by default.
|
Boolean |
{template} |
Specify the extent of the fishnet. The extent can be entered by specifying the coordinates or using a template dataset.
|
CreateFishnet_management C:\WorkSpace\fishnet.shp'1037.262115 4145.810156' '1037.262115 4155.810156' 0 0 10 10 '19273.615444 18471.179674' LABELS '1037.262115 4145.810156 19273.615444 18471.179674'
Scripting syntax
About getting started with writing geoprocessing scripts
CreateFishnet_management (out_feature_class, origin_coord, y_axis_coord, cell_width, cell_height, number_rows, number_columns, corner_coord, labels, template)
Parameter | Explanation | Data Type |
out_feature_class (Required) |
The output feature class containing the fishnet of rectangular cells. |
Feature Class |
origin_coord (Required) |
The fishnet origin is the lower left corner of the fishnet set by an X-Coordinate and Y-Coordinate. |
Point |
y_axis_coord (Required) |
The y-axis coordinate is a point on the positive y-axis from the origin point and is used to orient the fishnet. |
Point |
cell_width (Required) |
The cell size width refers to the size of the cells in the x-coordinate position. |
Double |
cell_height (Required) |
The cell size height refers to the size of the cells in the y-coordinate direction. |
Double |
number_rows (Required) |
The number of rows used with the cell size to determine the size of the fishnet. |
Long |
number_columns (Required) |
The number of columns used with the cell size to determine the size of the fishnet. |
Long |
corner_coord (Optional) |
The opposite corner of the fishnet is the upper right corner of the fishnet set by an X-Coordinate and Y-Coordinate. |
Point |
labels (Optional) |
Specify whether or not a point feature class will be created containing label points at the center of each fishnet cell. Labels are generated by default.
|
Boolean |
template (Optional) |
Specify the extent of the fishnet. The extent can be entered by specifying the coordinates or using a template dataset.
|
import arcgisscripting gp = arcgisscripting.create() gp.CreateFishnet_management("C:/Workspace/fishnet.shp", "0 0", "0 2", 1, 1, 2, 3, "#", "NO_LABELS")