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. |
ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
SpatialReferenceEnvironment is the one and only instance of its class.