com.esri.arcgis.geodatabase
Interface IGeoDatasetSchemaEdit

All Superinterfaces:
Serializable
All Known Subinterfaces:
IGeoDatasetSchemaEdit2
All Known Implementing Classes:
CompositeGraphicsLayer, FeatureDataset, IGeoDatasetSchemaEdit2Proxy, IGeoDatasetSchemaEditProxy, NetworkDataset, RasterDataset, SchematicDiagramClass, SchematicInMemoryFeatureClass

public interface IGeoDatasetSchemaEdit
extends Serializable

Provides access to members that change the schema of a GeoDataset.

Remarks

The IGeoDatasetSchemaEdit interface is an optional interface that allows you to change the spatial reference associated with an existing dataset.

Note that the AlterSpatialReference method does not project or otherwise modify the existing data in the dataset-this method merely rewrites the spatial reference associated with the dataset. The caller is responsible for ensuring the correctness and appropriateness of the supplied spatial reference. Its most common use is to supply a spatial reference for a dataset whose spatial reference is currently tagged as Unknown.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void alterSpatialReference(ISpatialReference spatialReference)
          Alters the spatial reference of the dataset to match the coordinate system of the input spatial reference, does not reproject the data.
 boolean isCanAlterSpatialReference()
          Indicates if the spatial reference of the dataset can be altered.
 

Method Detail

isCanAlterSpatialReference

boolean isCanAlterSpatialReference()
                                   throws IOException,
                                          AutomationException
Indicates if the spatial reference of the dataset can be altered.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The canAlter
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

alterSpatialReference

void alterSpatialReference(ISpatialReference spatialReference)
                           throws IOException,
                                  AutomationException
Alters the spatial reference of the dataset to match the coordinate system of the input spatial reference, does not reproject the data.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
spatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.