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(Object outDatasetPath, String outName)
          Creates the Create Feature Dataset tool with the required parameters.
 
Method Summary
 Object getOutDataset()
          Returns the Output Feature Dataset parameter of this tool (Read only).
 Object getOutDatasetPath()
          Returns the Feature Dataset Location parameter of this tool .
 String getOutName()
          Returns the Feature Dataset Name parameter of this tool .
 Object getSpatialReference()
          Returns the Coordinate System 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 setOutDatasetPath(Object outDatasetPath)
          Sets the Feature Dataset Location parameter of this tool .
 void setOutName(String outName)
          Sets the Feature Dataset Name parameter of this tool .
 void setSpatialReference(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(Object outDatasetPath,
                            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 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(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 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(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 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(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 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 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