Provides access to members that create different kinds of spatial reference components. Note: the ISpatialReferenceFactory2 interface has been superseded byISpatialReferenceFactory3. Please consider using the more recent version.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Description
ISpatialReferenceFactory2 extends the ISpatialReferenceFactory interface and provides methods for accessing a variety of predefined geographic (datum) transformations and creating any kind of spatial reference (PCS or GCS) from its factory code.
Members
Inherited Interfaces
Interfaces |
Description |
ISpatialReferenceFactory |
Provides access to members that create different kinds of spatial reference components. |
CoClasses that implement ISpatialReferenceFactory2
Remarks
The CreatePredefinedGeographicTransformations and the GetPredefinedGeographicTransformations methods both return an ISet of all the possible geotransformations that ArcObjects can create. The SpatialReferenceEnvironment maintains ownership of the set returned by GetPredefinedGeographicTransformations. Neither this set nor its elements should be modified. The Set and transformation elements returned by CreatePredefinedGeographicTransformations can be modified.
.NET Snippets
Get Azimuth from Two Points |
Get Distance from Two Points
.NET Samples
Create a raster catalog using the geoprocessor (Code Files:
CreateRasterCatalog_GP) |
Geoevents in a MapControl (Code Files:
GeoEvents) |
RSS weather layer (Code Files:
AddWeatherItemTool)
.NET Related Topics
Geometry service |
How to project a raster with a datum transformation |
How to use the IGeoTransformationOperationSet methods |
Writing .NET code using properties