com.esri.arcgis.geoprocessing.tools.datamanagementtools
Class CreateRandomPoints

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

public class CreateRandomPoints
extends AbstractGPTool

Creates a specified number of random point features. Random points can be generated in an extent window, inside polygon features, on point features, or along line features. The Create Random Points tool is contained in the Data Management Tools tool box.

Usage tips:


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
CreateRandomPoints()
          Creates the Create Random Points tool with defaults.
CreateRandomPoints(Object outPath, String outName)
          Creates the Create Random Points tool with the required parameters.
 
Method Summary
 Object getConstrainingExtent()
          Returns the Constraining Extent parameter of this tool .
 Object getConstrainingFeatureClass()
          Returns the Constraining Feature Class parameter of this tool .
 String getCreateMultipointOutput()
          Returns the Create Multipoint Output parameter of this tool .
 Object getMinimumAllowedDistance()
          Returns the Minimum Allowed Distance [value or field] parameter of this tool .
 int getMultipointSize()
          Returns the Maximum Number of Points per Multipoint parameter of this tool .
 Object getNumberOfPointsOrField()
          Returns the Number of Points [value or field] parameter of this tool .
 Object getOutFeatureClass()
          Returns the Output Feature Class parameter of this tool (Read only).
 String getOutName()
          Returns the Output Point Feature Class parameter of this tool .
 Object getOutPath()
          Returns the Output Location parameter of this tool .
 String getToolboxAlias()
          Returns the alias of the tool box containing this tool.
 String getToolboxName()
          Returns the name of the tool box containing this tool.
 String getToolName()
          Returns the name of this tool.
 void setConstrainingExtent(Object constrainingExtent)
          Sets the Constraining Extent parameter of this tool .
 void setConstrainingFeatureClass(Object constrainingFeatureClass)
          Sets the Constraining Feature Class parameter of this tool .
 void setCreateMultipointOutput(String createMultipointOutput)
          Sets the Create Multipoint Output parameter of this tool .
 void setMinimumAllowedDistance(Object minimumAllowedDistance)
          Sets the Minimum Allowed Distance [value or field] parameter of this tool .
 void setMultipointSize(int multipointSize)
          Sets the Maximum Number of Points per Multipoint parameter of this tool .
 void setNumberOfPointsOrField(Object numberOfPointsOrField)
          Sets the Number of Points [value or field] parameter of this tool .
 void setOutName(String outName)
          Sets the Output Point Feature Class parameter of this tool .
 void setOutPath(Object outPath)
          Sets the Output Location 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

CreateRandomPoints

public CreateRandomPoints()
Creates the Create Random Points tool with defaults.

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


CreateRandomPoints

public CreateRandomPoints(Object outPath,
                          String outName)
Creates the Create Random Points 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:
outPath - the location or workspace in which the random points feature class will be created. This location or workspace must already exist.
outName - the name of the random points feature class to be created.
Method Detail

getOutPath

public Object getOutPath()
Returns the Output Location parameter of this tool . This parameter is the location or workspace in which the random points feature class will be created. This location or workspace must already exist. This is a required parameter.

Returns:
the Output Location

setOutPath

public void setOutPath(Object outPath)
Sets the Output Location parameter of this tool . This parameter is the location or workspace in which the random points feature class will be created. This location or workspace must already exist. This is a required parameter.

Parameters:
outPath - the location or workspace in which the random points feature class will be created. This location or workspace must already exist.

getOutName

public String getOutName()
Returns the Output Point Feature Class parameter of this tool . This parameter is the name of the random points feature class to be created. This is a required parameter.

Returns:
the Output Point Feature Class

setOutName

public void setOutName(String outName)
Sets the Output Point Feature Class parameter of this tool . This parameter is the name of the random points feature class to be created. This is a required parameter.

Parameters:
outName - the name of the random points feature class to be created.

getConstrainingFeatureClass

public Object getConstrainingFeatureClass()
Returns the Constraining Feature Class parameter of this tool . This parameter is random points will be generated inside or along the features in this feature class. The constraining feature class can be geometry type point, multipoint, line, or polygon. Points will randomly be placed inside polygon features, along line features, or at point feature locations. This is an optional parameter.

Returns:
the Constraining Feature Class

setConstrainingFeatureClass

public void setConstrainingFeatureClass(Object constrainingFeatureClass)
Sets the Constraining Feature Class parameter of this tool . This parameter is random points will be generated inside or along the features in this feature class. The constraining feature class can be geometry type point, multipoint, line, or polygon. Points will randomly be placed inside polygon features, along line features, or at point feature locations. This is an optional parameter.

Parameters:
constrainingFeatureClass - random points will be generated inside or along the features in this feature class. The constraining feature class can be geometry type point, multipoint, line, or polygon. Points will randomly be placed inside polygon features, along line features, or at point feature locations.

getConstrainingExtent

public Object getConstrainingExtent()
Returns the Constraining Extent parameter of this tool . This parameter is random points will be generated inside the extent. The constraining extent will only be used if no constraining feature class is specified. This is an optional parameter.

Returns:
the Constraining Extent

setConstrainingExtent

public void setConstrainingExtent(Object constrainingExtent)
Sets the Constraining Extent parameter of this tool . This parameter is random points will be generated inside the extent. The constraining extent will only be used if no constraining feature class is specified. This is an optional parameter.

Parameters:
constrainingExtent - random points will be generated inside the extent. The constraining extent will only be used if no constraining feature class is specified.

getNumberOfPointsOrField

public Object getNumberOfPointsOrField()
Returns the Number of Points [value or field] parameter of this tool . This parameter is the number of points to be randomly generated. the number of points can be specified as a long integer number or as a field from the constraining features containing numeric values for how many random points to place within each feature. The field option is only valid for polygon or line constraining features. If the number of points is supplied as a long integer number, each feature in the constraining feature class will have that number of random points generated inside or along it. This is an optional parameter.

Returns:
the Number of Points [value or field]

setNumberOfPointsOrField

public void setNumberOfPointsOrField(Object numberOfPointsOrField)
Sets the Number of Points [value or field] parameter of this tool . This parameter is the number of points to be randomly generated. the number of points can be specified as a long integer number or as a field from the constraining features containing numeric values for how many random points to place within each feature. The field option is only valid for polygon or line constraining features. If the number of points is supplied as a long integer number, each feature in the constraining feature class will have that number of random points generated inside or along it. This is an optional parameter.

Parameters:
numberOfPointsOrField - the number of points to be randomly generated. the number of points can be specified as a long integer number or as a field from the constraining features containing numeric values for how many random points to place within each feature. The field option is only valid for polygon or line constraining features. If the number of points is supplied as a long integer number, each feature in the constraining feature class will have that number of random points generated inside or along it.

getMinimumAllowedDistance

public Object getMinimumAllowedDistance()
Returns the Minimum Allowed Distance [value or field] parameter of this tool . This parameter is the shortest distance allowed between any two randomly placed points. If a value of "1 Meter" is specified, all random points will be farther than 1 meter away from the closest point. This is an optional parameter.

Returns:
the Minimum Allowed Distance [value or field]

setMinimumAllowedDistance

public void setMinimumAllowedDistance(Object minimumAllowedDistance)
Sets the Minimum Allowed Distance [value or field] parameter of this tool . This parameter is the shortest distance allowed between any two randomly placed points. If a value of "1 Meter" is specified, all random points will be farther than 1 meter away from the closest point. This is an optional parameter.

Parameters:
minimumAllowedDistance - the shortest distance allowed between any two randomly placed points. If a value of "1 Meter" is specified, all random points will be farther than 1 meter away from the closest point.

getCreateMultipointOutput

public String getCreateMultipointOutput()
Returns the Create Multipoint Output parameter of this tool . This parameter is determines if the output feature class will be a multipart or single part feature. This is an optional parameter.

Returns:
the Create Multipoint Output

setCreateMultipointOutput

public void setCreateMultipointOutput(String createMultipointOutput)
Sets the Create Multipoint Output parameter of this tool . This parameter is determines if the output feature class will be a multipart or single part feature. This is an optional parameter.

Parameters:
createMultipointOutput - determines if the output feature class will be a multipart or single part feature.

getMultipointSize

public int getMultipointSize()
Returns the Maximum Number of Points per Multipoint parameter of this tool . This parameter is if the Create Multipoint Output option is used (checked/MULTIPOINT), this parameter specifies the number of random points to be placed in each multipoint geometry. This is an optional parameter.

Returns:
the Maximum Number of Points per Multipoint

setMultipointSize

public void setMultipointSize(int multipointSize)
Sets the Maximum Number of Points per Multipoint parameter of this tool . This parameter is if the Create Multipoint Output option is used (checked/MULTIPOINT), this parameter specifies the number of random points to be placed in each multipoint geometry. This is an optional parameter.

Parameters:
multipointSize - if the Create Multipoint Output option is used (checked/MULTIPOINT), this parameter specifies the number of random points to be placed in each multipoint geometry.

getOutFeatureClass

public Object getOutFeatureClass()
Returns the Output Feature Class parameter of this tool (Read only). This is an derived parameter.

Returns:
the Output Feature Class

getToolName

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

Returns:
the tool name

getToolboxName

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

Returns:
the tool box name

getToolboxAlias

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

Returns:
the tool box alias