com.esri.arcgis.geoprocessing.tools.cartographytools
Class GridIndexFeatures

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.AbstractGPTool
      extended by com.esri.arcgis.geoprocessing.tools.cartographytools.GridIndexFeatures
All Implemented Interfaces:
GPTool

public class GridIndexFeatures
extends AbstractGPTool

Creates a grid of rectangular of polygon features that can be used as an index to specify pages for a map book using Data Driven Pages. A grid can be created that only includes polygon features that intersect another feature layer. The Grid Index Features tool is contained in the Cartography Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
GridIndexFeatures()
          Creates the Grid Index Features tool with defaults.
GridIndexFeatures(java.lang.Object outFeatureClass)
          Creates the Grid Index Features tool with the required parameters.
 
Method Summary
 java.lang.Object getInFeatures()
          Returns the Input Features parameter of this tool .
 java.lang.String getIntersectFeature()
          Returns the Generate Polygon Grid that intersects input feature layers or datasets parameter of this tool .
 java.lang.String getLabelFromOrigin()
          Returns the Start labeling from the Origin parameter of this tool .
 int getNumberColumns()
          Returns the Number of Columns parameter of this tool .
 int getNumberRows()
          Returns the Number of Rows parameter of this tool .
 java.lang.Object getOriginCoord()
          Returns the Polygon Grid Origin Coordinate parameter of this tool .
 java.lang.Object getOutFeatureClass()
          Returns the Output Feature Class parameter of this tool .
 java.lang.Object getPolygonHeight()
          Returns the Polygon Height parameter of this tool .
 java.lang.Object getPolygonWidth()
          Returns the Polygon Width parameter of this tool .
 int getScale()
          Returns the Map Scale parameter of this tool .
 int getStartingPageNumber()
          Returns the Starting Page Number parameter of this tool .
 java.lang.String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 java.lang.String getToolboxName()
          Returns the name of the tool box containing this tool.
 java.lang.String getToolName()
          Returns the name of this tool.
 java.lang.String getUsePageUnit()
          Returns the Use Page Unit and Scale parameter of this tool .
 void setInFeatures(java.lang.Object inFeatures)
          Sets the Input Features parameter of this tool .
 void setIntersectFeature(java.lang.String intersectFeature)
          Sets the Generate Polygon Grid that intersects input feature layers or datasets parameter of this tool .
 void setLabelFromOrigin(java.lang.String labelFromOrigin)
          Sets the Start labeling from the Origin parameter of this tool .
 void setNumberColumns(int numberColumns)
          Sets the Number of Columns parameter of this tool .
 void setNumberRows(int numberRows)
          Sets the Number of Rows parameter of this tool .
 void setOriginCoord(java.lang.Object originCoord)
          Sets the Polygon Grid Origin Coordinate parameter of this tool .
 void setOutFeatureClass(java.lang.Object outFeatureClass)
          Sets the Output Feature Class parameter of this tool .
 void setPolygonHeight(java.lang.Object polygonHeight)
          Sets the Polygon Height parameter of this tool .
 void setPolygonWidth(java.lang.Object polygonWidth)
          Sets the Polygon Width parameter of this tool .
 void setScale(int scale)
          Sets the Map Scale parameter of this tool .
 void setStartingPageNumber(int startingPageNumber)
          Sets the Starting Page Number parameter of this tool .
 void setUsePageUnit(java.lang.String usePageUnit)
          Sets the Use Page Unit and Scale parameter of this tool .
 
Methods inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
getParameterValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridIndexFeatures

public GridIndexFeatures()
Creates the Grid Index Features tool with defaults.

Initializes the array of tool parameters with the default values specified when the tool was created.


GridIndexFeatures

public GridIndexFeatures(java.lang.Object outFeatureClass)
Creates the Grid Index Features tool with the required parameters.

Initializes the array of tool parameters with the values as specified for the required parameters and with the default values for the other parameters.

Parameters:
outFeatureClass - resulting feature class of polygon index features.
Method Detail

getOutFeatureClass

public java.lang.Object getOutFeatureClass()
Returns the Output Feature Class parameter of this tool . This parameter is resulting feature class of polygon index features. This is a required parameter.

Returns:
the Output Feature Class

setOutFeatureClass

public void setOutFeatureClass(java.lang.Object outFeatureClass)
Sets the Output Feature Class parameter of this tool . This parameter is resulting feature class of polygon index features. This is a required parameter.

Parameters:
outFeatureClass - resulting feature class of polygon index features.

getInFeatures

public java.lang.Object getInFeatures()
Returns the Input Features parameter of this tool . This parameter is input features can be used to define the extent of the polygon grid that is created. This is an optional parameter.

Returns:
the Input Features

setInFeatures

public void setInFeatures(java.lang.Object inFeatures)
Sets the Input Features parameter of this tool . This parameter is input features can be used to define the extent of the polygon grid that is created. This is an optional parameter.

Parameters:
inFeatures - input features can be used to define the extent of the polygon grid that is created.

getIntersectFeature

public java.lang.String getIntersectFeature()
Returns the Generate Polygon Grid that intersects input feature layers or datasets parameter of this tool . This parameter is limits the output grid feature class to only areas that intersect input feature layers or datasets. When input features are specified, the default value is INTERSECTFEATURE. The intersection of input features will be used to create index features. This is an optional parameter.

Returns:
the Generate Polygon Grid that intersects input feature layers or datasets

setIntersectFeature

public void setIntersectFeature(java.lang.String intersectFeature)
Sets the Generate Polygon Grid that intersects input feature layers or datasets parameter of this tool . This parameter is limits the output grid feature class to only areas that intersect input feature layers or datasets. When input features are specified, the default value is INTERSECTFEATURE. The intersection of input features will be used to create index features. This is an optional parameter.

Parameters:
intersectFeature - limits the output grid feature class to only areas that intersect input feature layers or datasets. When input features are specified, the default value is INTERSECTFEATURE. The intersection of input features will be used to create index features.

getUsePageUnit

public java.lang.String getUsePageUnit()
Returns the Use Page Unit and Scale parameter of this tool . This parameter is indicates whether index polygon size input is in page units. The default is NO_USEPAGEUNIT. The tool uses map units by default. This is an optional parameter.

Returns:
the Use Page Unit and Scale

setUsePageUnit

public void setUsePageUnit(java.lang.String usePageUnit)
Sets the Use Page Unit and Scale parameter of this tool . This parameter is indicates whether index polygon size input is in page units. The default is NO_USEPAGEUNIT. The tool uses map units by default. This is an optional parameter.

Parameters:
usePageUnit - indicates whether index polygon size input is in page units. The default is NO_USEPAGEUNIT. The tool uses map units by default.

getScale

public int getScale()
Returns the Map Scale parameter of this tool . This parameter is scale must be specified if the index polygon height and width are to be calculated in page units.. If the tool is being used outside of an active ArcMap session the default scale value is 1. This is an optional parameter.

Returns:
the Map Scale

setScale

public void setScale(int scale)
Sets the Map Scale parameter of this tool . This parameter is scale must be specified if the index polygon height and width are to be calculated in page units.. If the tool is being used outside of an active ArcMap session the default scale value is 1. This is an optional parameter.

Parameters:
scale - scale must be specified if the index polygon height and width are to be calculated in page units.. If the tool is being used outside of an active ArcMap session the default scale value is 1.

getPolygonWidth

public java.lang.Object getPolygonWidth()
Returns the Polygon Width parameter of this tool . This parameter is width of the index polygon specifed in either map or page units. If page units are being used the default value is 1 inch. If map units are being used the default is 1 degree. This is an optional parameter.

Returns:
the Polygon Width

setPolygonWidth

public void setPolygonWidth(java.lang.Object polygonWidth)
Sets the Polygon Width parameter of this tool . This parameter is width of the index polygon specifed in either map or page units. If page units are being used the default value is 1 inch. If map units are being used the default is 1 degree. This is an optional parameter.

Parameters:
polygonWidth - width of the index polygon specifed in either map or page units. If page units are being used the default value is 1 inch. If map units are being used the default is 1 degree.

getPolygonHeight

public java.lang.Object getPolygonHeight()
Returns the Polygon Height parameter of this tool . This parameter is height of the index polygon specifed in either map or page units. If page units are being used the default value is 1 inch. If map units are being used the default is 1 degree. This is an optional parameter.

Returns:
the Polygon Height

setPolygonHeight

public void setPolygonHeight(java.lang.Object polygonHeight)
Sets the Polygon Height parameter of this tool . This parameter is height of the index polygon specifed in either map or page units. If page units are being used the default value is 1 inch. If map units are being used the default is 1 degree. This is an optional parameter.

Parameters:
polygonHeight - height of the index polygon specifed in either map or page units. If page units are being used the default value is 1 inch. If map units are being used the default is 1 degree.

getOriginCoord

public java.lang.Object getOriginCoord()
Returns the Polygon Grid Origin Coordinate parameter of this tool . This parameter is coordinate for the lower left origin of the output grid feature class. If input features are specified the default value is determined by the extent of the union of extents for these features. If there are no input features specified, the default coordinates are 0 and 0. This is an optional parameter.

Returns:
the Polygon Grid Origin Coordinate

setOriginCoord

public void setOriginCoord(java.lang.Object originCoord)
Sets the Polygon Grid Origin Coordinate parameter of this tool . This parameter is coordinate for the lower left origin of the output grid feature class. If input features are specified the default value is determined by the extent of the union of extents for these features. If there are no input features specified, the default coordinates are 0 and 0. This is an optional parameter.

Parameters:
originCoord - coordinate for the lower left origin of the output grid feature class. If input features are specified the default value is determined by the extent of the union of extents for these features. If there are no input features specified, the default coordinates are 0 and 0.

getNumberRows

public int getNumberRows()
Returns the Number of Rows parameter of this tool . This parameter is number of rows to create in the y direction from the point of origin. The default is 10. This is an optional parameter.

Returns:
the Number of Rows

setNumberRows

public void setNumberRows(int numberRows)
Sets the Number of Rows parameter of this tool . This parameter is number of rows to create in the y direction from the point of origin. The default is 10. This is an optional parameter.

Parameters:
numberRows - number of rows to create in the y direction from the point of origin. The default is 10.

getNumberColumns

public int getNumberColumns()
Returns the Number of Columns parameter of this tool . This parameter is number of columns to create in the x direction from the point of origin. The default is 10. This is an optional parameter.

Returns:
the Number of Columns

setNumberColumns

public void setNumberColumns(int numberColumns)
Sets the Number of Columns parameter of this tool . This parameter is number of columns to create in the x direction from the point of origin. The default is 10. This is an optional parameter.

Parameters:
numberColumns - number of columns to create in the x direction from the point of origin. The default is 10.

getStartingPageNumber

public int getStartingPageNumber()
Returns the Starting Page Number parameter of this tool . This parameter is each grid index feature is assigned a sequential page number starting with a specified starting page number. The default is 1. This is an optional parameter.

Returns:
the Starting Page Number

setStartingPageNumber

public void setStartingPageNumber(int startingPageNumber)
Sets the Starting Page Number parameter of this tool . This parameter is each grid index feature is assigned a sequential page number starting with a specified starting page number. The default is 1. This is an optional parameter.

Parameters:
startingPageNumber - each grid index feature is assigned a sequential page number starting with a specified starting page number. The default is 1.

getLabelFromOrigin

public java.lang.String getLabelFromOrigin()
Returns the Start labeling from the Origin parameter of this tool . This parameter is page numbers (labels) starting with the specified starting page number (default is 1) begins with the cell in the lower left corner of the output grid. The default is NO_LABELFROMORIGIN. This is an optional parameter.

Returns:
the Start labeling from the Origin

setLabelFromOrigin

public void setLabelFromOrigin(java.lang.String labelFromOrigin)
Sets the Start labeling from the Origin parameter of this tool . This parameter is page numbers (labels) starting with the specified starting page number (default is 1) begins with the cell in the lower left corner of the output grid. The default is NO_LABELFROMORIGIN. This is an optional parameter.

Parameters:
labelFromOrigin - page numbers (labels) starting with the specified starting page number (default is 1) begins with the cell in the lower left corner of the output grid. The default is NO_LABELFROMORIGIN.

getToolName

public java.lang.String getToolName()
Returns the name of this tool.

Returns:
the tool name

getToolboxName

public java.lang.String getToolboxName()
Returns the name of the tool box containing this tool.

Returns:
the tool box name

getToolboxAlias

public java.lang.String getToolboxAlias()
Returns the alias of the tool box containing this tool.

Returns:
the tool box alias