|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISpatialReferenceFactory2
Provides access to members that create different kinds of spatial reference components.
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.
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.
Method Summary | |
---|---|
ISet |
createPredefinedGeographicTransformations()
Creates a list of predefined geographic transformations. |
ISpatialReference |
createSpatialReference(int srID)
Creates a predefined spatial reference from an srID. |
IGeoTransformationOperationSet |
getGeoTransformationDefaults()
Creates a list of default geographic transformations. |
ISet |
getPredefinedGeographicTransformations()
Returns a list of predefined geographic transformations. |
Method Detail |
---|
ISet createPredefinedGeographicTransformations() throws IOException, AutomationException
Returns a list of all predefined geographic (datum) transformations. The list has two columns: the factory code and the name.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISpatialReference createSpatialReference(int srID) throws IOException, AutomationException
Use a srID from the esriSRProjCSType or esriSRGeoCSType enumerations to create a particular predefined spatial reference.
The CreateSpatialReference method creates a valid SpatialReference, either a projected or geographic coordinate system, depending on the supplied FactoryCode (here called an srID). The method returns an ISpatialReference. The example code illustrates how to test for what type of SpatialReference has been created. This method will raise an error (E_INVALIDARG) if the FactoryCode number supplied is not valid.
srID
- The srID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGeoTransformationOperationSet getGeoTransformationDefaults() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISet getPredefinedGeographicTransformations() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |