IGeoDatasetSchemaEdit Interface

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

Members

Name Description
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 CanAlterSpatialReference Indicates if the spatial reference of the dataset can be altered.

IGeoDatasetSchemaEdit.AlterSpatialReference Method

Alters the spatial reference of the dataset to match the coordinate system of the input spatial reference, does not reproject the data.

Public Sub AlterSpatialReference ( _
    ByVal SpatialReference As ISpatialReference _
)
public void AlterSpatialReference (
    ISpatialReference SpatialReference
);

IGeoDatasetSchemaEdit.CanAlterSpatialReference Property

Indicates if the spatial reference of the dataset can be altered.

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

Classes that implement IGeoDatasetSchemaEdit

Classes Description
BimModelObject (esriDataSourcesFile) Esri BIM File Model class.
RasterDataset (esriDataSourcesRaster) A representation of a raster dataset on disk.
Tin The Esri TIN component.

Remarks

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

Note that the AlterSpatialReferencemethod 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.

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