Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Feature Class toolset > Tools

Create Fishnet (Data Management)

Release 9.3
Last modified March 8, 2012
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

NOTE: This topic was updated for 9.3.1.


Creates a fishnet of rectangular cells

Learn more about how Create Fishnet works.


Usage tips

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.

  • LABELS
  • NO_LABELS

Boolean
{template}

Specify the extent of the fishnet. The extent can be entered by specifying the coordinates or using a template dataset.

  • Left — XMin value
  • Right — XMax value
  • Bottom — YMin value
  • Top — YMax value

Data types for geoprocessing tool parameters


Command line example

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.

  • LABELS
  • NO_LABELS

Boolean
template (Optional)

Specify the extent of the fishnet. The extent can be entered by specifying the coordinates or using a template dataset.

  • Left — XMin value
  • Right — XMax value
  • Bottom — YMin value
  • Top — YMax value


Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.CreateFishnet_management("C:/Workspace/fishnet.shp", "0 0", "0 2", 1, 1, 2, 3, "#", "NO_LABELS")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.