Open Table of Contents

Vector Grid

Go to ToolBox Implementation Go to .NET Implementation

Creates a polyline or polygon vector grid using user defined extents and cell size.

Inputs:

Outputs:

Notes:

ToolBox implementation
(Go to TOP)

Command line syntax - ET_GPVectorGridExtents

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> An Envelope representing the extents - "XMin YMin XMax YMax"
<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

ET_GPVectorGridExtents (out_feature_ class out_spatial_reference grid_type get_extents_from Extent X_Cell_Size Y_Cell_Size)

Command line syntax - ET_GPVectorGridOrigin

ET_GPVectorGridOrigin <out_feature_class> {out_spatial_reference} <grid_type> <X_origin> <Y_origin> <Number_columns> <Number_rows> <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"
<X_origin> A Double representing the X coordinate of the lower left corner of the grid.
<Y_origin> A Double representing the Y coordinate of the lower left corner of the grid.
<Number_Columns> A Long representing the number of columns that the resulting grid will have
<Number_Rows> A Long representing the number of rows  that the resulting grid will have
<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_GPVectorGridOrigin

ET_GPVectorGridOrigin (out_feature_ class out_spatial_reference grid_type X_origin Y_origin Number_Columns Number_Rows X_Cell_Size Y_Cell_Size)

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

.NET implementation
(Go to TOP)

VectorGridExtent(sOutFName As String, sGridType As String, pExtent As IEnvelope,dCellSizeX As Double, dCellSizeY As Double, Optional pOutSref As ISpatialReference = Nothing) As IFeatureClass

VectorGridOrigin(sOutFName As String, sGridType As String, dLowerLeftX As Double, dLowerLeftY As Double, iNumColumns As Integer, iNumRows As Integer, dCellSizeX As Double, dCellSizeY As Double, Optional pOutSref As ISpatialReference = Nothing) As IFeatureClass

Copyright Ianko Tchoukanski