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

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

public class CreateFeatureDataset
extends AbstractGPTool

Creates a feature dataset in the output location—an existing ArcSDE, file, or personal geodatabase. The Create Feature Dataset tool is contained in the Data Management Tools tool box.


Field Summary
 
Fields inherited from class com.esri.arcgis.geoprocessing.AbstractGPTool
vals
 
Constructor Summary
CreateFeatureDataset()
          Creates the Create Feature Dataset tool with defaults.
CreateFeatureDataset(java.lang.Object outDatasetPath, java.lang.String outName)
          Creates the Create Feature Dataset tool with the required parameters.
 
Method Summary
 java.lang.Object getOutDataset()
          Returns the Output Feature Dataset parameter of this tool (Read only).
 java.lang.Object getOutDatasetPath()
          Returns the Feature Dataset Location parameter of this tool .
 java.lang.String getOutName()
          Returns the Feature Dataset Name parameter of this tool .
 java.lang.Object getSpatialReference()
          Returns the Coordinate System 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.
 void setOutDatasetPath(java.lang.Object outDatasetPath)
          Sets the Feature Dataset Location parameter of this tool .
 void setOutName(java.lang.String outName)
          Sets the Feature Dataset Name parameter of this tool .
 void setSpatialReference(java.lang.Object spatialReference)
          Sets the Coordinate System 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

CreateFeatureDataset

public CreateFeatureDataset()
Creates the Create Feature Dataset tool with defaults.

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


CreateFeatureDataset

public CreateFeatureDataset(java.lang.Object outDatasetPath,
                            java.lang.String outName)
Creates the Create Feature Dataset 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:
outDatasetPath - the ArcSDE, file, or personal geodatabase in which the Output Feature Dataset will be created.
outName - the name of the feature dataset to be created.
Method Detail

getOutDatasetPath

public java.lang.Object getOutDatasetPath()
Returns the Feature Dataset Location parameter of this tool . This parameter is the ArcSDE, file, or personal geodatabase in which the Output Feature Dataset will be created. This is a required parameter.

Returns:
the Feature Dataset Location

setOutDatasetPath

public void setOutDatasetPath(java.lang.Object outDatasetPath)
Sets the Feature Dataset Location parameter of this tool . This parameter is the ArcSDE, file, or personal geodatabase in which the Output Feature Dataset will be created. This is a required parameter.

Parameters:
outDatasetPath - the ArcSDE, file, or personal geodatabase in which the Output Feature Dataset will be created.

getOutName

public java.lang.String getOutName()
Returns the Feature Dataset Name parameter of this tool . This parameter is the name of the feature dataset to be created. This is a required parameter.

Returns:
the Feature Dataset Name

setOutName

public void setOutName(java.lang.String outName)
Sets the Feature Dataset Name parameter of this tool . This parameter is the name of the feature dataset to be created. This is a required parameter.

Parameters:
outName - the name of the feature dataset to be created.

getSpatialReference

public java.lang.Object getSpatialReference()
Returns the Coordinate System parameter of this tool . This parameter is the spatial reference of the output feature dataset. You can specify the spatial reference in several ways: This is an optional parameter.

Returns:
the Coordinate System

setSpatialReference

public void setSpatialReference(java.lang.Object spatialReference)
Sets the Coordinate System parameter of this tool . This parameter is the spatial reference of the output feature dataset. You can specify the spatial reference in several ways: This is an optional parameter.

Parameters:
spatialReference - the spatial reference of the output feature dataset. You can specify the spatial reference in several ways:
  • By entering the path to a .prj file, such as C:/workspace/watershed.prj.
  • By referencing a feature class or feature dataset whose spatial reference you want to apply, such as C:/workspace/myproject.gdb/landuse/grassland .
  • By defining a spatial reference object prior to using this tool, such as sr = arcpy.SpatialReference("C:/data/Africa/Carthage.prj") which you then use as the spatial reference parameter. Refer to the stand-alone code sample below.

getOutDataset

public java.lang.Object getOutDataset()
Returns the Output Feature Dataset parameter of this tool (Read only). This is an derived parameter.

Returns:
the Output Feature Dataset

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