Open Table of Contents

ET GeoWizards Toolbox

Vector Grid Extents
(Go to the main page of the function)

Creates a vector grid (Polygon or Polyline) using grid extents X and Y cell size.

Command line syntax

ET_GPVectorGridExtents <out_feature_class> {out_spatial_reference} <grid_type> {get_extents_from} <Extent> <X_Cell_Size> <Y_Cell_Size>

Parameters

Expression Explanation
<out_feature class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
{out_spatial_reference} The spatial reference of the output feature class. If not specified the output will be created with Unknown coordinate system
<grid_type> A String controlling the shape type of the output point grid. Valid values "Polygon", "Polyline"
 {get_extents_from} A String - a layer name or the full name of the a feature class to be used as a source for the extents (see examples below)
<Extent> A Double representing the Y coordinate of the lower left corner of the grid. (see examples below)
<X_Cell_Size> A Double representing the size of the call in X direction
<Y_Cell_Size> A Double representing the size of the call in Y direction.

Scripting syntax

ET_GPVectorGridExtents (out_feature_ class out_spatial_reference grid_type get_extents_from Extent X_Cell_Size Y_Cell_Size)

See the explanations above:
<> - required parameter
{} - optional parameter

Examples:

ET_GPVectorGridExtents c:\00\zzzzzz1 # Polygon cadastre1 # 50 5

ET_GPVectorGridExtents c:\00\zzzzzz3 # Polygon # "-100.000000 -200.000000 200.000000 100.000000" 50 5