This document is archived and information here might be outdated.  Recommended version.


About OLE DB Providers (ArcObjects .NET 10.4 SDK)

About OLE DB Providers


Microsoft's OLE DB model enables external data to be served to ArcGIS applications by means of an OLE DB provider. The following sections discuss implementing your own OLE DB provider to serve spatial data from a custom data source to ArcGIS or any other application. The following sections do not cover the standard ESRI OLE DB provider which provides ESRI format data to external applications; this, and the consumption of OLE DB data in ArcGIS, is discussed in Implementing OLE DB Providers in ArcGIS.
OLE DB providers enable external data to be served to ArcGIS applications.
An OLE DB provider for spatial data should use the standards defined by the Open GIS Consortium (OGC or OGIS). These are described in the 'OpenGIS® Simple Features Specification for OLE/COM', which is available from www.opengis.org.
The Open GIS Consortium defines standards for spatially enabled OLE DB providers.
In addition to the OGIS requirements, there are the Microsoft requirements for a 'Minimum level provider' (known as level 0). These are set out in the Microsoft article 'OLE DB Leveling: Choosing the Right Interfaces'. Before continuing with the details of implementing an OGIS-compliant OLE DB provider, consider the two main alternative solutions for serving a custom data source to ArcGIS: custom layers and plug-in data sources.
Custom layers and plug-in data sources are alternatives to OLE DB providers for serving custom data formats to ArcGIS. See the comparison table in the plug-in data sources section.
Both of these approaches have their own sections in this book. There is a table summarizing the benefits of each solution in the section on plug-in data sources.

ArcGIS Requirements for OLE DB providers

To be consumable by ArcGIS, in addition to the Microsoft minimum provider functionality, your provider must satisfy the following requirements (they will be explained in more detail later):
  1. Implement one standard schema rowset, the Tables rowset, using the IDBSchemaRowset interface.
  2. Implement the OGIS Feature Tables and Geometry Columns schema rowsets—they are needed for browsing and schema discovery.
  3. Support the ICommandWithParameters interface on the Command object—this is needed to handle spatial queries.
  4. Support the IColumnsRowset interface on the Rowset object—this is needed to support the additional OGIS Metadata columns: GEOM_TYPE, SPATIAL_REF_SYSTEM_ID, and SPATIAL_REF_SYSTEM_WKT.
  5. Return geometry objects as OGIS Well-Known Binaries (WKBs).
ArcGIS does not require the provider to be registered to the OGISDataProvider component category. It is also not essential to implement the OGIS Spatial Reference Systems Schema rowset.

References

Several good information resources are listed below. They can mostly be found in MSDN:


See Also:

OGIS OLE DB Provider Example