IGeoDatasetSchemaEdit2 Interface

Provides access to members that change the geodata transformation of a GeoDataset.

Members

Name Description
Method AlterGeodataXform Alters the geodata transformation of the dataset (does not transform the data).
Method AlterResolution Alters the resolution of the dataset and rebuilds the spatial indexes.
Method AlterSpatialReference Alters the spatial reference of the dataset to match the coordinate system of the input spatial reference, does not reproject the data.
Read-only property CanAlterGeodataXform Indicates if the geodata transformation of the dataset can be altered.
Read-only property CanAlterSpatialReference Indicates if the spatial reference of the dataset can be altered.
Method ConstructResolutions Returns a list of possible resolutions (precisions) and the doubling factors that produce them from the specified low precision spatial reference. The zeroth returned element is the current precision of the spatial reference.

IGeoDatasetSchemaEdit2.AlterGeodataXform Method

Alters the geodata transformation of the dataset (does not transform the data).

Public Sub AlterGeodataXform ( _
    ByVal xform As IGeodataXform _
)
public void AlterGeodataXform (
    IGeodataXform xform
);

IGeoDatasetSchemaEdit2.AlterResolution Method

Alters the resolution of the dataset and rebuilds the spatial indexes.

Public Sub AlterResolution ( _
    ByVal xyResolution As Double, _
    ByVal zResolution As Double, _
    ByVal mResolution As Double _
)
public void AlterResolution (
    double xyResolution,
    double zResolution,
    double mResolution
);

Remarks

AlterResolution will change the resolution of the dataset based on the supplied XY, Z and M resolution values and rebuild the spatial indices. AlterResolution can only be used on Low Precision datasets within a 9.2 Geodatabase. To determine if AlterPrecision can be used on dataset, use the IControlPrecision2::IsHighPrecision property.

Use the IGeoDatasetSchemaEdit2::ConstructResolutions method to obtain the applicable levels of resolution for your data.

If a value of -1 is supplied for the xyResolution or zResolution arguments, the current resolution will be maintained. The current resolution of for a dataset can be obtained from its spatial reference using the ISpatialReferenceResolution interface.

Any of the following scenarios will result in an error:

  • If a value supplied is not equal to one of the possible resolutions returned by IGeoDatasetSchemaEdit2::ConstructResolutions.
  • If a resolution value that is coarser or larger than the current resolution is supplied.
  • If a value of 0 or a negative value other than -1 is supplied.

IGeoDatasetSchemaEdit2.CanAlterGeodataXform Property

Indicates if the geodata transformation of the dataset can be altered.

Public ReadOnly Property CanAlterGeodataXform As Boolean
public bool CanAlterGeodataXform {get;}

IGeoDatasetSchemaEdit2.ConstructResolutions Method

Returns a list of possible resolutions (precisions) and the doubling factors that produce them from the specified low precision spatial reference. The zeroth returned element is the current precision of the spatial reference.

Public Sub ConstructResolutions ( _
    ByVal SpatialReference As ISpatialReference, _
    ByVal numberRequested As Integer, _
    ByRef defaultXYResolutionIndex As Integer, _
    ByRef xyResolutions As IDoubleArray, _
    ByRef zResolutions As IDoubleArray, _
    ByRef mResolutions As IDoubleArray _
)
public void ConstructResolutions (
    ISpatialReference SpatialReference,
    int numberRequested,
    ref int defaultXYResolutionIndex,
    ref IDoubleArray xyResolutions,
    ref IDoubleArray zResolutions,
    ref IDoubleArray mResolutions
);

Remarks

ConstructResolutions should be used to determine the acceptable levels of resolution available for AlterResolution.

Inherited Interfaces

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

Classes that implement IGeoDatasetSchemaEdit2

Classes Description
RasterDataset (esriDataSourcesRaster) A representation of a raster dataset on disk.

Remarks

The IGeoDatasetSchemaEdit2 interface is an optional interface that allows you to change the transformation associated with an existing dataset.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.