Open Table of Contents

Point Grid

Go to ToolBox Implementation Go to .NET Implementation

Creates a grid of points using user defined grid type and distance between the points.

Inputs:

Outputs:

Notes:

ToolBox implementation - two tools are available for the Point Grid function
(Go to TOP)

Command line syntax - ET_GPPointGridOrigin

ET_GPPointGridOrigin <out_feature_class> {out_spatial_reference} <grid_type> <x_origin> <y_origin> <number_columns> <number_rows> <column_width> {row_height}

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 type of the output point grid. Valid values "Square", "Rectangle" or " Triangle"
<x_origin> A Double representing the X coordinate of the lower left point of the grid.
<y_origin> A Double representing the Y coordinate of the lower left point 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
<column_width> A Double representing the the width of each grid column (X - cell size)
{row_height} A Double representing the the height  of each grid column (Y - cell size). Needed only for a "Rectangle" type grid. If not used  row_height = column_width will be assigned.

Scripting syntax - ET_GPPointGridOrigin

ET_GPPointGridOrigin (out_feature_ class out_spatial_reference grid_type x_origin y_origin number_columns number_rows column_width row_height)

Command line syntax - ET_GPPointGridExtents

ET_GPPointGridExtents <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 type of the output point grid. Valid values "Square", "Rectangle" or " Triangle"
 {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_GPPointGridExtents

ET_GPPointGridExtents (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

.NET implementation
(Go to TOP)

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

PointGridOrigin(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