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


SpatialReferenceEnvironment CoClass (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

SpatialReferenceEnvironment CoClass

Creates various spatial reference objects.

Product Availability

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

Description

SpatialReferenceEnvironment is a singleton object. However, if you are working in a multi-threaded environment, each thread will have its own SpatialReferenceEnvironment. You should not pass information between the threads.

Supported Platforms

Windows, Solaris, Linux

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IClassFactory
ISpatialReferenceFactory Provides access to members that create different kinds of spatial reference components.
ISpatialReferenceFactory2 Provides access to members that create different kinds of spatial reference components.
ISpatialReferenceFactory3 Provides access to members that create vertical datums or coordinate systems.
ISpatialReferenceFactory4 Provides access to members that create lists of coordinate systems.
ISpatialReferenceFactory5 Provides access to members that control the geographic transformations fallback mechanism.
ISpatialReferenceFactory6 Provides access to members that control the geographic transformations fallback mechanism.
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
SpatialReferenceEnvironment is the one and only instance of its class.