|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.datasourcesnetCDF.NetCDFWorkspace
public class NetCDFWorkspace
The NetCDF workspace object.
Constructor Summary | |
---|---|
NetCDFWorkspace(Object obj)
Construct a NetCDFWorkspace using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
canCopy()
True if this dataset can be copied. |
boolean |
canDelete()
True if this dataset can be deleted. |
boolean |
canRename()
True if this dataset can be renamed. |
IDataset |
copy(String copyName,
IWorkspace copyWorkspace)
Copies this dataset to a new dataset with the specified name. |
IDataset |
createView(String viewName,
IMDDatasetView pView)
Creates a dataset from a view definition. |
void |
delete()
Deletes this dataset. |
boolean |
equals(Object o)
Compare this object with another |
void |
executeSQL(String sqlStmt)
Executes the specified SQL statement. |
boolean |
exists()
Checks if the workspace exists. |
IStringArray |
getAttributeNames(String varName)
The array of global or variable specific attribute names. |
Object |
getAttributeValue(String varName,
String attName,
int valueIndex)
The attribute value for a specified variable and an attribute name or keyword. |
String |
getBrowseName()
The browse name of the dataset. |
String |
getCategory()
The category of the dataset. |
IPropertySet |
getConnectionProperties()
The connection properties of the workspace. |
IEnumDatasetName |
getDatasetNames(int datasetType)
The DatasetNames in the workspace. |
IEnumDataset |
getDatasets(int datasetType)
The datasets in the workspace. |
int |
getDimensionIndex(String dimName,
Object vValue)
The dimension index for a specified dimension and value. |
IStringArray |
getDimensions()
The array of dimension items. |
IStringArray |
getDimensionsByVariable(String varName)
The dimension items for a specified variable. |
int |
getDimensionSize(String dimName)
The size or length of a specified dimension. |
Object |
getDimensionValue(String dimName,
int index)
The dimension value for a specified dimension and index. |
IVariantArray |
getDimensionValues(String dimName)
The values for a specified dimension. |
int |
getFieldType(String name)
The field type of a variable or dimension. |
IName |
getFullName()
The associated name object. |
int |
getIndexFromValue(String name,
Object value)
Return the index of a specified variable or dimension value. |
String |
getName()
The name of the Dataset. |
String |
getPathName()
The file system full path of the workspace. |
IWorkspaceProperty |
getProperty(int propertyGroup,
int propertyType)
Information about this particular property. |
IPropertySet |
getPropertySet()
The set of properties for the dataset. |
ISpatialReference |
getSpatialReference(String varName,
String xDim,
String yDim)
The spatial reference for a variable. |
IEnumDataset |
getSubsets()
Datasets contained within this dataset. |
int |
getType()
The Type of the Workspace. |
Object |
getValueFromIndex(int index,
String name)
The dimension or variable value for a given index. |
IStringArray |
getVariables()
The array of variable strings. |
IStringArray |
getVariablesByDimension(String dimName)
All variables having the specified dimension name. |
IWorkspace |
getWorkspace()
The workspace containing this dataset. |
IWorkspaceFactory |
getWorkspaceFactory()
The factory that created the workspace. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isDirectory()
TRUE if the workspace is a file system directory. |
void |
rename(String name)
Renames this Dataset. |
void |
setBrowseName(String name)
The browse name of the dataset. |
void |
setProperty(int propertyGroup,
int propertyType,
IWorkspaceProperty workspaceProperty)
Information about this particular property. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public NetCDFWorkspace(Object obj) throws IOException
obj
to NetCDFWorkspace
. *
NetCDFWorkspace o = (NetCDFWorkspace)obj; // will not work
NetCDFWorkspace o = new NetCDFWorkspace(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
NetCDFWorkspace theNetCDFWorkspace = (NetCDFWorkspace) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public IPropertySet getConnectionProperties() throws IOException, AutomationException
The ConnectionProperties property of a workspace returns the set of named connection properties for this workspace.
getConnectionProperties
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspaceFactory getWorkspaceFactory() throws IOException, AutomationException
The WorkspaceFactory property can be used to get a reference back to the workspace factory for this workspace.
getWorkspaceFactory
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDataset getDatasets(int datasetType) throws IOException, AutomationException
getDatasets
in interface IWorkspace
datasetType
- A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDatasetName getDatasetNames(int datasetType) throws IOException, AutomationException
getDatasetNames
in interface IWorkspace
datasetType
- A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPathName() throws IOException, AutomationException
getPathName
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
getType
in interface IDataset
getType
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDirectory() throws IOException, AutomationException
isDirectory
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean exists() throws IOException, AutomationException
This method can be used with workspaces from file-based data sources to detect if they've been deleted by another application. For example, a shapefile workspace is a directory and can be deleted while the workspace is open.
exists
in interface IWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void executeSQL(String sqlStmt) throws IOException, AutomationException
The ExecuteSQL method can be used to send an arbitrary SQL statement to the underlying database for execution. The statement can be any DDL (data definition language) or DML (data manipulation language) statement but can not return any result sets. The syntax for the SQL is as required by the underlying database. The workspace supports an optional ISQLSyntax interface that provides information to applications on aspects of the SQL Syntax for the underlying database.
To determine if a workspace supports the ExecutesSQL method, an application can check the value of the canExecuteSQLworkspace property via the optional IWorkspaceProperties interface. In general, this method is only supported on local and remote database workspaces.
executeSQL
in interface IWorkspace
sqlStmt
- The sqlStmt (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getVariables() throws IOException, AutomationException
getVariables
in interface INetCDFWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getDimensions() throws IOException, AutomationException
getDimensions
in interface INetCDFWorkspace
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getAttributeNames(String varName) throws IOException, AutomationException
getAttributeNames
in interface INetCDFWorkspace
varName
- The varName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDimensionSize(String dimName) throws IOException, AutomationException
getDimensionSize
in interface INetCDFWorkspace
dimName
- The dimName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getDimensionsByVariable(String varName) throws IOException, AutomationException
getDimensionsByVariable
in interface INetCDFWorkspace
varName
- The varName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getVariablesByDimension(String dimName) throws IOException, AutomationException
getVariablesByDimension
in interface INetCDFWorkspace
dimName
- The dimName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getDimensionValue(String dimName, int index) throws IOException, AutomationException
getDimensionValue
in interface INetCDFWorkspace
dimName
- The dimName (in)index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDimensionIndex(String dimName, Object vValue) throws IOException, AutomationException
getDimensionIndex
in interface INetCDFWorkspace
dimName
- The dimName (in)vValue
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getAttributeValue(String varName, String attName, int valueIndex) throws IOException, AutomationException
getAttributeValue
in interface INetCDFWorkspace
varName
- The varName (in)attName
- The attName (in)valueIndex
- The valueIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IVariantArray getDimensionValues(String dimName) throws IOException, AutomationException
getDimensionValues
in interface INetCDFWorkspace
dimName
- The dimName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference(String varName, String xDim, String yDim) throws IOException, AutomationException
getSpatialReference
in interface INetCDFWorkspace
varName
- The varName (in)xDim
- The xDim (in)yDim
- The yDim (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFieldType(String name) throws IOException, AutomationException
getFieldType
in interface INetCDFWorkspace
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getValueFromIndex(int index, String name) throws IOException, AutomationException
getValueFromIndex
in interface INetCDFWorkspace
index
- The index (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getIndexFromValue(String name, Object value) throws IOException, AutomationException
getIndexFromValue
in interface INetCDFWorkspace
name
- The name (in)value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataset createView(String viewName, IMDDatasetView pView) throws IOException, AutomationException
createView
in interface IMDWorkspace
viewName
- The viewName (in)pView
- A reference to a com.esri.arcgis.datasourcesnetCDF.IMDDatasetView (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IName getFullName() throws IOException, AutomationException
getFullName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getBrowseName() throws IOException, AutomationException
getBrowseName
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBrowseName(String name) throws IOException, AutomationException
setBrowseName
in interface IDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCategory() throws IOException, AutomationException
IDataset::Category returns a description of the category of the dataset. The description returned from the Category property is the same value that is displayed in the Type column within the Contents tab in ArcCatalog. The value will contain a description of the dataset such as "Topology" prefixed with a description of the type of workspace containing the dataset such as "File Geodatabase".
The description returned from IDataset::Category may change between releases of ArcGIS. In addition to this, returned strings are localized, meaning that code relying on a specific string being provided may fail when deployed with a different version of ArcGIS than it was developed with, or when deployed to a client using a different language than it was developed with.
getCategory
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumDataset getSubsets() throws IOException, AutomationException
The Subsets property returns other Dataset objects contained in this dataset.
IDataset::Subsets is not supported for Graph objects such as a Geometric Network. To return the feature classes contained in a Geometric Network, use the IFeatureClassContainer interface.
getSubsets
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspace getWorkspace() throws IOException, AutomationException
The Workspace property returns the containing workspace for this dataset.
getWorkspace
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IPropertySet getPropertySet() throws IOException, AutomationException
The PropertySet property is used to return any additional intrinsic properties (but not metadata properties) that may apply to the dataset. One use of this property is to distinguish between the types of File Geodatabase datafile formats. If called on a Feature Class or Table in a File Geodatabase the Datafile Format property can either be esriFGDBStandardDatafile or esriFGDBCompressedDatafile.
Most datasets do not implement this property and will either raise an error or return a null value if it's called. There are a handful of exceptions that will return property sets; these include the datasets from file geodatabases (as mentioned above) and coverages.
Examples of intrinsic properties for which explicit methods exist include the SpatialReference and the Extent methods available on the IGeoDataset interface. In most cases this PropertySet will be empty.
IDataset::PropertySet is not supported for Graph objects such as a Geometric Network.
getPropertySet
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canCopy() throws IOException, AutomationException
The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
The CanCopy method is supported by:
canCopy
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDataset copy(String copyName, IWorkspace copyWorkspace) throws IOException, AutomationException
IDataset::Copy should only be used with datasets from file-based data sources, such as shapefiles and coverages.
copy
in interface IDataset
copyName
- The copyName (in)copyWorkspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canDelete() throws IOException, AutomationException
The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
canDelete
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void delete() throws IOException, AutomationException
Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.
delete
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canRename() throws IOException, AutomationException
The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods. For example, you may not delete or rename a network feature class nor can you use the Copy method on a Geodatabase feature class. To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.
canRename
in interface IDataset
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void rename(String name) throws IOException, AutomationException
IDataset::Rename does not support the renaming of Graph objects such as a Geometric Network. In addition, certain feature classes, such as network feature classes, cannot be renamed.
rename
in interface IDataset
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IWorkspaceProperty getProperty(int propertyGroup, int propertyType) throws IOException, AutomationException
getProperty
in interface IWorkspaceProperties
propertyGroup
- A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType
- The propertyType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setProperty(int propertyGroup, int propertyType, IWorkspaceProperty workspaceProperty) throws IOException, AutomationException
setProperty
in interface IWorkspaceProperties
propertyGroup
- A com.esri.arcgis.geodatabase.esriWorkspacePropertyGroupType constant (in)propertyType
- The propertyType (in)workspaceProperty
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceProperty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |