ET GeoWizards Scripting
Vector Grid Origin
(Go to the main page of the function)
Creates a polygon or polyline grid using origin point, number of columns and rows, X and Y cell size.
Syntax
Dim ET As New ETGW_Core
Set variable = ET.VectorGridOrigin (sOutFname, pOutSref, sOption,
dLowerLeftX, dLowerLeftY, _
lNumColumns, lNumRows, dCellSizeX, dCellSizeY, sMessage)
The VectorGridOrigin method syntax has the following object qualifier and arguments:
| Part | Description |
|---|---|
| variable | An IFeatureClass object |
| sOutFileName | Required. A String - the full name of the output feature class (A feature class with the same full name should not exist) |
| pOutSref | Required. A Spatial reference object - the spatial reference for the output feature class. |
| sOption | Required. A String that indicates the geometry type of the vector grid to be created. Valid values - "Polyline", "Polygon". |
| dLowerLeftX | Required. A Double representing the X coordinate of the lower left corner of the point grid to be created |
| dLowerLeftY | Required. A Double representing the Y coordinate of the lower left corner of the point grid to be created |
| lNumColumns | Required. A Long representing the number of columns of the output grid |
| lNumRows | Required. A Long representing the number of rows of the output grid |
| dCellSizeX | Required. A Double representing the distance between the points in the output grid in X direction |
| dCellSizeY | Required. A Double representing the distance between the points in the output grid in Y direction |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |