Interface IGeoDatasetSchemaEdit2
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that change the geodata transformation of a GeoDataset.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("0A6A2FAA-047D-4792-8732-D766D496BECA")]
public interface IGeoDatasetSchemaEdit2 : IGeoDatasetSchemaEdit
Remarks
The IGeoDatasetSchemaEdit2 interface is an optional interface that allows you to change the transformation associated with an existing dataset.
Properties
CanAlterGeodataXform
Indicates if the geodata transformation of the dataset can be altered.
bool CanAlterGeodataXform { get; }
Property Value
CanAlterSpatialReference
bool CanAlterSpatialReference { get; }
Property Value
Methods
AlterGeodataXform(IGeodataXform)
Alters the geodata transformation of the dataset (does not transform the data).
void AlterGeodataXform(IGeodataXform xform)
Parameters
xformIGeodataXform
AlterResolution(double, double, double)
Alters the resolution of the dataset and rebuilds the spatial indexes.
void AlterResolution(double xyResolution, double zResolution, double mResolution)
Parameters
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.
AlterSpatialReference(ISpatialReference)
void AlterSpatialReference(ISpatialReference SpatialReference)
Parameters
SpatialReferenceISpatialReference
ConstructResolutions(ISpatialReference, int, out int, out IDoubleArray, out IDoubleArray, out IDoubleArray)
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.
void ConstructResolutions(ISpatialReference SpatialReference, int numberRequested, out int defaultXYResolutionIndex, out IDoubleArray xyResolutions, out IDoubleArray zResolutions, out IDoubleArray mResolutions)
Parameters
SpatialReferenceISpatialReferencenumberRequestedintdefaultXYResolutionIndexintxyResolutionsIDoubleArrayzResolutionsIDoubleArraymResolutionsIDoubleArray
Remarks
ConstructResolutions should be used to determine the acceptable levels of resolution available for AlterResolution.