ArcObjects Library Reference  (GeoDatabase)    

IGeoDataset Interface

Provides access to members that provide information about a Geographic Dataset. Note: the IGeoDataset interface has been superseded by IGeoDataset2. Please consider using the more recent version.

Product Availability

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

Members

Description
Read-only property Extent The extent of the GeoDataset.
Read-only property SpatialReference The spatial reference of the GeoDataset.

CoClasses that implement IGeoDataset

CoClasses and Classes Description
CadAnnotationLayer (esriCarto) An ESRI Cad annotation layer.
CadastralFabric (esriGeoDatabaseExtensions) A container for querying information about a cadastral fabric.
CadastralFabricLayer (esriCarto) Cadastral Fabric Layer Object.
CadFeatureLayer (esriCarto) ESRI CAD Feature Layer class.
CadLayer (esriCarto) ESRI CAD Layer class.
CompositeGraphicsLayer (esriCarto) A collection of graphics layers that behave like single layer.
CoverageAnnotationLayer (esriCarto) An ESRI coverage annotation layer.
DimensionLayer (esriCarto) A collection of properties for a dimension layer.
FDOGraphicsLayer (esriCarto) A collection of properties for an annotation layer (feature data object graphics layer).
FDOGraphicsSublayer (esriCarto) A collection of properties for an annotation sublayer layer (feature data object graphics sublayer).
FeatureClass ESRI Feature Class object.
FeatureClassDescriptor (esriGeoAnalyst) GeoAnalyst FeatureClass descriptor object.
FeatureDataset ESRI Feature Dataset object.
FeatureLayer (esriCarto) A collection of features and their visual representation.
ForceElementLayer (esriDefenseSolutions) A custom layer, bound to a feature layer, that wraps a force element display list and makes it possible to view and manipulate its cached graphic contents in an ArcGIS map display.
GdbRasterCatalogLayer (esriCarto) Geodabase RasterCatalog source and display options.
GeometricNetwork ESRI Geometric Network object.
GlobeGraphicsLayer (esriGlobeCore) The Globe Graphics Layer.
GlobeLayer (esriGlobeCore) The cache-only globe layer.
GlobeServerLayer (esriGlobeCore) Provides programmatic access to a globe server layer.
GraphicsLayer3D (esri3DAnalyst) A 3D Graphics Layer.
GroupLayer (esriCarto) A collection of layers that behaves like a single layer.
ImageServerLayer (esriCarto) Image server layer source and display options.
IMSMapLayer (esriCarto) A container for the display and manipulation of IMS layers.
IMSSubFeatureLayer (esriCarto) A collection of IMS features as a sublayer of an IMSMapLayer.
JoinedControlPointLayer (esriCadastralUI) Layer object that represents Control Points.
JoinedLinePointLayer (esriCadastralUI) Layer object that represents Joined LinePoints.
JoinedParcelLayer (esriCadastralUI) Layer object that represents Joined Parcels.
JoinedParcelLineLayer (esriCadastralUI) Layer object that represents Joined Parcel Lines.
JoinedPointLayer (esriCadastralUI) Layer object that represents Joined Points.
KmlLayer (esriGlobeCore) ESRI KML Layer class.
MADtedLayer (esriDefenseSolutions) A layer used to control the display of MA DTED Catalogs.
MapServerBasicSublayer (esriCarto) Provides programmatic access to a basic map server sublayer.
MapServerFindSublayer (esriCarto) Provides programmatic access to a map server sublayer with Find capability.
MapServerIdentifySublayer (esriCarto) Provides programmatic access to a map server sublayer with Identify capability.
MapServerLayer (esriCarto) Provides programmatic access to a map server layer.
MapServerQuerySublayer (esriCarto) Provides programmatic access to a map server sublayer with Find and Identify capability.
MARasterLayer (esriDefenseSolutions) A layer used to control the display of MA RPF Catalogs.
MosaicRaster (esriDataSourcesRaster) A mosaic of rasters.
NALayer (esriNetworkAnalyst) The layer for defining, solving, and viewing network analysis results.
NetworkDataset A container for querying information about a network dataset.
NetworkLayer (esriCarto) ESRI Network Layer CoClass.
NITFGraphicsLayer (esriCarto) A NITF graphics layer containing NITF CGM graphics.
PacketJoinedLayer (esriCadastralUI) Layer object that represents a packet of Joined Parcels, Lines, Points, Control Points, LinePoints and Text.
ProcessLayer (esriGeoprocessing) A collection of process layers that behaves like a single layer.
Raster (esriDataSourcesRaster) An in-memory representation of a dynamic raster that can perform resampling and reprojection.
RasterBand (esriDataSourcesRaster) A representation of a single band of a raster dataset on disk.
RasterCatalog A collection of raster datasets in a Geodatabase table.
RasterCatalogLayer (esriCarto) Raster catalog source and display options.
RasterCatalogTable (esriDataSourcesRaster) A special type of table used to display multiple rasters simultaneously.
RasterDataset (esriDataSourcesRaster) A representation of a raster dataset on disk.
RasterDescriptor (esriGeoAnalyst) GeoAnalyst Raster descriptor object.
RasterLayer (esriCarto) Raster layer source and display options.
RouteEventSource (esriLocation) Route event source object.
SchematicDataset (esriSchematic) Schematic Dataset Object.
SchematicDiagram (esriSchematic) Schematic Diagram Object.
SchematicLayer (esriSchematic) A Schematic layer object.
SdeRasterCatalogTable (esriDataSourcesRaster) A class for managing 8.x ArcSDE RasterCatalogs.
SearchResultsLayer (esriCatalog) A layer that lets you preview a search result in the Geography tab.
TacticalGraphicLayer (esriDefenseSolutions) A custom layer, bound to a feature layer, that wraps a tactical graphic display list and makes it possible to view and manipulate its cached graphic contents in an ArcGIS map display.
TemporalFeatureClass (esriTrackingAnalyst) Controls settings for the temporal feature class.
TemporalFeatureLayer (esriTrackingAnalyst) Defines the coclass IDL parameters and attributes of the TemporalFeatureLayer COM object.
Terrain (esriGeoDatabaseExtensions) The ESRI Terrain component.
TerrainLayer (esriCarto) The Terrain Layer class.
Tin The ESRI TIN component.
TinLayer (esriCarto) The TIN Layer class.
Topology ESRI Topology object.
TopologyLayer (esriCarto) A collection of properties for a topology layer.
WCSLayer (esriCarto) WCS layer source and display options.
WMSGroupLayer (esriCarto) A container for the display of WMS group layers.
WMSMapLayer (esriCarto) A container for the display and manipulation of WMS layers.
XYEventSource XY event source object.

Remarks

This interface provides access to information about spatial datasets, in particular their spatial reference and geographic extent. All layers also implement this interface.

[C#]

    //this function uses the Geodatasets extent to refersh the active view of a map control.
    public void IGeoDataset__(IFeatureClass featureClass, ESRI.ArcGIS.Controls.IMapControl4 mapControl)
    {
        ESRI.ArcGIS.Carto.IActiveView activeView = mapControl.ActiveView;
        IGeoDataset geoDataset = featureClass as IGeoDataset;
        //You can force an update of the IGeodataset.Extent with IFeatureClassManage::UpdateExtent
        activeView.Extent = geoDataset.Extent;
        activeView.Refresh();
    }

[Visual Basic 6.0] This code zooms to the extent of a layer:
Dim pGeoDataset As IGeoDataset
Set pGeoDataset = pLayer
pActiveView.Extent = pGeoDataset.Extent
pActiveView.Refresh

See Also

IEnvelope Interface