|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geometry.SpatialReferenceEnvironment
public class SpatialReferenceEnvironment
Creates various spatial reference objects.
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.
Constructor Summary | |
---|---|
SpatialReferenceEnvironment()
Constructs a SpatialReferenceEnvironment using ArcGIS Engine. |
|
SpatialReferenceEnvironment(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. SpatialReferenceEnvironment theSpatialReferenceEnvironment = (SpatialReferenceEnvironment) obj; |
Method Summary | |
---|---|
void |
commitIdentity(int[] ppInOutCoordSys)
Ensures that no copy of pCS exists in the system. |
ISpatialReference |
constructHighPrecisionSpatialReference(ISpatialReference inSR,
int xyDoubler,
int zDoubler,
int mDoubler)
Constructs a high precision spatial reference based on an existing spatial reference. |
ISpatialReference |
constructLowPrecisionSpatialReference(boolean bMatchPrecision,
ISpatialReference inSR,
IEnvelope dataExtent)
Construct a low precision spatial reference with the same scale factor as the high precision input, but with a different domain extent. |
IDatum |
createDatum(int datumType)
Creates a predefined datum. |
void |
createESRISpatialReference(String spatRefInfo,
ISpatialReference[] spatialReference,
int[] cBytesRead)
Creates a spatial reference system and defines it from the specified ESRISpatialReference buffer. |
ISpatialReference |
createESRISpatialReferenceFromPRJ(String prj)
Creates a spatial reference from a PRJ string. |
ISpatialReference |
createESRISpatialReferenceFromPRJFile(String prjFile)
Creates a spatial reference from a PRJ file. |
void |
createESRISpatialReferenceInfo(String spatRefInfo,
ISpatialReferenceInfo[] spatialReference,
int[] cBytesRead)
Creates a spatial reference system and defines it from the specified ESRISpatialReference buffer. |
ISpatialReferenceInfo |
createESRISpatialReferenceInfoFromPRJ(String prj)
Creates a spatial reference from a PRJ string. |
ISpatialReferenceInfo |
createESRISpatialReferenceInfoFromPRJFile(String prjFile)
Creates a spatial reference from a PRJ file. |
IGeographicCoordinateSystem |
createGeographicCoordinateSystem(int gcsType)
Creates a predefined geographic coordinate system. |
ITransformation |
createGeoTransformation(int gTransformationType)
Creates a predefined transformation between geographic coordinate systems. |
void |
createOwnedCS(int[] ppInOutCoordSys)
Replaces ppInOutCoordSys with an exact, deep copy. |
IParameter |
createParameter(int parameterType)
Creates a predefined parameter. |
ISet |
createPredefinedAngularUnits()
Creates a list of predefined angular units. |
ISet |
createPredefinedDatums()
Creates a list of a list of predefined datums. |
ISet |
createPredefinedGeographicTransformations()
Creates a list of predefined geographic transformations. |
ISet |
createPredefinedLinearUnits()
Creates a list of predefined linear units. |
ISet |
createPredefinedPrimeMeridians()
Creates a list of predefined prime meridians. |
ISet |
createPredefinedProjections()
Creates a list of predefined projections. |
ISet |
createPredefinedSpheroids()
Creates a list of predefined spheroids. |
ISet |
createPredefinedVerticalCoordinateSystems()
Creates a list of predefined vertical coordinate systems. |
ISet |
createPredefinedVerticalDatums()
Creates a list of predefined vertical datums. |
IPrimeMeridian |
createPrimeMeridian(int primeMeridianType)
Creates a predefined prime meridian. |
IProjectedCoordinateSystem |
createProjectedCoordinateSystem(int pcsType)
Creates a predefined projected coordinate system. |
IProjection |
createProjection(int projectionType)
Creates a predefined projection. |
ISpatialReference |
createSpatialReference(int srID)
Creates a predefined spatial reference from an srID. |
ISpheroid |
createSpheroid(int spheroidType)
Creates a predefined spheroid. |
IUnit |
createUnit(int unitType)
Creates a predefined unit of measure. |
IVerticalCoordinateSystem |
createVerticalCoordinateSystem(int vcsID)
Creates a predefined vertical coordinate system from an enumeration or ID code. |
IVerticalCoordinateSystem |
createVerticalCoordinateSystemFromESRISpatialReference(String srInfo)
Creates a vertical coordinate system from its string format. |
IVerticalDatum |
createVerticalDatum(int vdID)
Creates a predefined vertical datum from an enumeration or ID code. |
boolean |
equals(Object o)
Compare this object with another |
void |
exportESRISpatialReferenceInfoToPRJFile(String prjFile,
ISpatialReferenceInfo spatialReference)
Exports a spatial reference to a PRJ file. |
void |
exportESRISpatialReferenceToPRJFile(String prjFile,
ISpatialReference spatialReference)
Exports a spatial reference to a PRJ file. |
void |
findFactoryCS(int factoryCSCode,
int[] ppOutCoordSys)
Finds or manufactures a pre-defined coordinate system. |
static String |
getClsid()
getClsid. |
IGeoTransformationOperationSet |
getGeoTransformationDefaults()
Creates a list of default geographic transformations. |
ISet |
getPredefinedGeographicTransformations()
Returns a list of predefined geographic transformations. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
releaseCoordSys(int pInCoordSys)
Decrements the ref count of the extended coord sys and possibly removes it. |
void |
remoteCreateInstance(GUID riid,
Object[] ppvObject)
remoteCreateInstance |
void |
remoteLockServer(int fLock)
remoteLockServer |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public SpatialReferenceEnvironment() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic SpatialReferenceEnvironment(Object obj) throws IOException
SpatialReferenceEnvironment theSpatialReferenceEnvironment = (SpatialReferenceEnvironment) obj;
obj
to SpatialReferenceEnvironment
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void createESRISpatialReference(String spatRefInfo, ISpatialReference[] spatialReference, int[] cBytesRead) throws IOException, AutomationException
createESRISpatialReference
in interface ISpatialReferenceFactory
spatRefInfo
- The spatRefInfo (in)spatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (out: use single element array)cBytesRead
- The cBytesRead (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference createESRISpatialReferenceFromPRJ(String prj) throws IOException, AutomationException
Not implemented for GeographicCoordinateSystem and ProjectedCoordinateSystem. Use the CreateESRISpatialReference or CreateESRISpatialReferenceFromPRJFile methods instead.
createESRISpatialReferenceFromPRJ
in interface ISpatialReferenceFactory
prj
- The prj (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference createESRISpatialReferenceFromPRJFile(String prjFile) throws IOException, AutomationException
Both old style (workstation) and new style (arcview) prj files can be used with this method to create spatial reference system objects.
createESRISpatialReferenceFromPRJFile
in interface ISpatialReferenceFactory
prjFile
- The prjFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exportESRISpatialReferenceToPRJFile(String prjFile, ISpatialReference spatialReference) throws IOException, AutomationException
ExportESRISpatialReferenceToPRJFile converts an ArcGIS style spatial reference into the well-known text string. Here is an example (reformatted):
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137,298.257222101]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.0174532925199433]]
To convert a spatialreference into an ArcInfo workstation format (for TINs, GRIDs, or coverages), use IPRJSpatialReferenceGEN_ExportSpatialReferenceToPRJ.
exportESRISpatialReferenceToPRJFile
in interface ISpatialReferenceFactory
prjFile
- The prjFile (in)spatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUnit createUnit(int unitType) throws IOException, AutomationException
Use an element from the esriSRUnitType or esriSRUnit2Type enumerations as the unitType to create a particular predefined unit of measure.
createUnit
in interface ISpatialReferenceFactory
unitType
- The unitType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRUnit2Type
,
esriSRUnitType
public ISpheroid createSpheroid(int spheroidType) throws IOException, AutomationException
Use an element from the esriSRSpheroidType or esriSRSpheroid2Type enumerations as the spheroidType to create a particular predefined spheroid.
createSpheroid
in interface ISpatialReferenceFactory
spheroidType
- The spheroidType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRSpheroid2Type
,
esriSRSpheroidType
public IDatum createDatum(int datumType) throws IOException, AutomationException
Use an element from the esriSRDatumType, esriSRDatum2Type, or esriSRDatum3Type enumerations as the datumType to create a particular predefined horizontal datum.
createDatum
in interface ISpatialReferenceFactory
datumType
- The datumType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRDatumType
,
esriSRDatum2Type
,
esriSRDatum3Type
public IPrimeMeridian createPrimeMeridian(int primeMeridianType) throws IOException, AutomationException
Use an element from the esriSRPrimeMType or esriSRPrimeM2Type enumerations as the primeMeridianType to create a particular predefined prime meridian.
createPrimeMeridian
in interface ISpatialReferenceFactory
primeMeridianType
- The primeMeridianType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IProjection createProjection(int projectionType) throws IOException, AutomationException
Use an element from the esriSRProjectionType, esriSRProjection2Type, esriSRProjection3Type, or esriSRProjection4Type enumerations as the projectionType to create a particular predefined map projection.
createProjection
in interface ISpatialReferenceFactory
projectionType
- The projectionType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRProjection2Type
,
esriSRProjection3Type
,
esriSRProjection4Type
,
esriSRProjectionType
public IParameter createParameter(int parameterType) throws IOException, AutomationException
Use an element from the esriSRParameterType, esriSRParameter2Type, esriSRParameter3Type, or esriSRParameter4Type enumerations as the ParameterType to create a particular predefined parameter.
createParameter
in interface ISpatialReferenceFactory
parameterType
- The parameterType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRParameter2Type
,
esriSRParameter3Type
,
esriSRParameter4Type
,
esriSRParameterType
public IProjectedCoordinateSystem createProjectedCoordinateSystem(int pcsType) throws IOException, AutomationException
Use an element from the esriSRProjCSType, esriSRProjCS2Type, esriSRProjCS3Type, or esriSRProjCS4Type enumerations as the pcsType to create a particular predefined projected coordinate system.
createProjectedCoordinateSystem
in interface ISpatialReferenceFactory
pcsType
- The pcsType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRProjCSType
,
esriSRProjCS2Type
,
esriSRProjCS3Type
,
esriSRProjCS4Type
public IGeographicCoordinateSystem createGeographicCoordinateSystem(int gcsType) throws IOException, AutomationException
Use an element from the esriSRGeoCSType, esriSRGeoCS2Type, or esriSRGeoCS3Type enumerations as the gcsType to create a particular predefined geographic coordinate system.
The example code shows how to create an object that represents the WGS 1984 geographic coordinate system.
createGeographicCoordinateSystem
in interface ISpatialReferenceFactory
gcsType
- The gcsType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRGeoCSType
,
esriSRGeoCS2Type
,
esriSRGeoCS3Type
public ITransformation createGeoTransformation(int gTransformationType) throws IOException, AutomationException
Use an element from the esriSRGeoTransformationType, esriSRGeoTransformation2Type, or esriSRGeoTransformation3Type enumerations as the gTransformationType to create a particular predefined geographic (datum) transformation.
createGeoTransformation
in interface ISpatialReferenceFactory
gTransformationType
- The gTransformationType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriSRGeoTransformationType
,
esriSRGeoTransformation2Type
,
esriSRGeoTransformation3Type
public ISet createPredefinedProjections() throws IOException, AutomationException
Create a set of all predefined map projection objects.
A Projection object encapsulates the mathematics needed to convert geographic coordinates between two different coordinate systems. A projection is a component of a projected coordinate system and is not usually used directly. Rather, a projected cooordinate system is defined and used to project cooordinates.
createPredefinedProjections
in interface ISpatialReferenceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet createPredefinedLinearUnits() throws IOException, AutomationException
Returns a list of all predefined linear units. The list has two columns: the factory code and the name.
createPredefinedLinearUnits
in interface ISpatialReferenceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet createPredefinedDatums() throws IOException, AutomationException
Returns a list of all predefined horizontal datums. The list has two columns: the factory code and the name.
createPredefinedDatums
in interface ISpatialReferenceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet createPredefinedAngularUnits() throws IOException, AutomationException
Returns a list of all predefined angular units. The list has two columns: the factory code and the name.
createPredefinedAngularUnits
in interface ISpatialReferenceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet createPredefinedPrimeMeridians() throws IOException, AutomationException
Returns a list of all predefined prime meridians. The list has two columns: the factory code and the name.
createPredefinedPrimeMeridians
in interface ISpatialReferenceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet createPredefinedSpheroids() throws IOException, AutomationException
Returns a list of all predefined spheroids. The list has two columns: the factory code and the name.
createPredefinedSpheroids
in interface ISpatialReferenceFactory
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
createPredefinedGeographicTransformations
in interface ISpatialReferenceFactory2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
createSpatialReference
in interface ISpatialReferenceFactory2
srID
- The srID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGeoTransformationOperationSet getGeoTransformationDefaults() throws IOException, AutomationException
getGeoTransformationDefaults
in interface ISpatialReferenceFactory2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet getPredefinedGeographicTransformations() throws IOException, AutomationException
getPredefinedGeographicTransformations
in interface ISpatialReferenceFactory2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IVerticalCoordinateSystem createVerticalCoordinateSystem(int vcsID) throws IOException, AutomationException
Use an element from the esriSRVerticalCSType enumeration as the VerticalCSType to create a particular predefined vertical coordinate system.
createVerticalCoordinateSystem
in interface ISpatialReferenceFactory3
vcsID
- The vcsID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IVerticalDatum createVerticalDatum(int vdID) throws IOException, AutomationException
Use an element from the esriSRVerticalDatumType enumeration as the vdID to create a particular predefined vertical datum.
createVerticalDatum
in interface ISpatialReferenceFactory3
vdID
- The vdID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet createPredefinedVerticalDatums() throws IOException, AutomationException
Returns a list of all predefined vertical datums. The list has two columns: the factory code and the name.
createPredefinedVerticalDatums
in interface ISpatialReferenceFactory3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet createPredefinedVerticalCoordinateSystems() throws IOException, AutomationException
Returns a list of all predefined vertical coordinate systems. The list has two columns: the factory code and the name.
createPredefinedVerticalCoordinateSystems
in interface ISpatialReferenceFactory3
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IVerticalCoordinateSystem createVerticalCoordinateSystemFromESRISpatialReference(String srInfo) throws IOException, AutomationException
Creates a vertical coordinate system object from the well-known text (WKT) version of a spatial reference. An example of a WKT string that contains geographic and vertical coordinate systems is below. The string is broken into several lines to make it easier to read.
GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",
SPHEROID["Clarke_1866",6378206.4,294.9786982]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],
VERTCS["NAVD_1988",VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],
UNIT["Meter",1.0]]
createVerticalCoordinateSystemFromESRISpatialReference
in interface ISpatialReferenceFactory3
srInfo
- The srInfo (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void createESRISpatialReferenceInfo(String spatRefInfo, ISpatialReferenceInfo[] spatialReference, int[] cBytesRead) throws IOException, AutomationException
CreateESRISpatialReferenceInfo creates a spatial reference from the well-known text (WKT) version. Below is an example of a WKT string, broken into several lines to make it easier to read.
GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",
SPHEROID["Clarke_1866",6378206.4,294.9786982]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],
VERTCS["NAVD_1988",VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],
UNIT["Meter",1.0]]
createESRISpatialReferenceInfo
in interface ISpatialReferenceFactory3
spatRefInfo
- The spatRefInfo (in)spatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReferenceInfo (out: use single element array)cBytesRead
- The cBytesRead (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReferenceInfo createESRISpatialReferenceInfoFromPRJ(String prj) throws IOException, AutomationException
CreateESRISpatialReferenceInfoFromPRJ creates a spatial reference from an ArcInfo workstation version of a coordinate system definition. This type of definition is used for coverages, TINs, and GRIDs. If you pass in a Projection Engine-style string instead, "the input is not a workstation prj file" error message is returned. The Projection Engine format is used by shapefiles, geodatabases, and raster formats other than GRIDs.
An ArcInfo workstation file might look like:
Projection GEOGRAPHIC
Units DEGREES
Datum WGS84
Spheroid WGS84
Parameters
Use CreateESRISpatialReferenceInfoFromPRJFile if you want to create a spatial reference from a Projection Engine-style string.
createESRISpatialReferenceInfoFromPRJ
in interface ISpatialReferenceFactory3
prj
- The prj (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReferenceInfo createESRISpatialReferenceInfoFromPRJFile(String prjFile) throws IOException, AutomationException
Creates a spatial reference from a file that contains the well-known text version. Below is an example of a WKT version that contains both geographic and vertical coordinate systems. WKT is always a single line, but the sample is broken into several lines to make it easier to read.
GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",
SPHEROID["Clarke_1866",6378206.4,294.9786982]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],
VERTCS["NAVD_1988",VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],
UNIT["Meter",1.0]]
createESRISpatialReferenceInfoFromPRJFile
in interface ISpatialReferenceFactory3
prjFile
- The prjFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void exportESRISpatialReferenceInfoToPRJFile(String prjFile, ISpatialReferenceInfo spatialReference) throws IOException, AutomationException
Creates a well-known text version of a spatial reference and writes the information to a file. Below is an example of a WKT version that contains both geographic and vertical coordinate systems. WKT is always a single line, but the sample is broken into several lines to make it easier to read.
GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",
SPHEROID["Clarke_1866",6378206.4,294.9786982]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],
VERTCS["NAVD_1988",VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],
UNIT["Meter",1.0]]
exportESRISpatialReferenceInfoToPRJFile
in interface ISpatialReferenceFactory3
prjFile
- The prjFile (in)spatialReference
- A reference to a com.esri.arcgis.geometry.ISpatialReferenceInfo (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference constructHighPrecisionSpatialReference(ISpatialReference inSR, int xyDoubler, int zDoubler, int mDoubler) throws IOException, AutomationException
ConstructHighPrecisionSpatialReference creates a high precision copy of an existing low precision spatial reference. It is used when the new high precision spatial reference grid must “mesh” with the existing low precision grid. Each point of the old grid is also a point of the new grid.
The doubler parameters are exponents of powers of 2. For example, if the xyDoubler = 2, then the XY grid resolution of the output spatial reference is 4 times the input grid resolution (16 new grid cells cover 1 old grid cell). The grid also is translated so it remains centered about its current location. If a doubler parameter is -1, then the closest legal resolution to the default that covers the input XY domain and the coordinate system's horizon is chosen. If the doubler parameter is -2, the smallest possible legal resolution that covers the input XY domain and the coordinate system's horizon is chosen. In these cases, the highest exponent is chosen that will produce an output grid that both contains all the grid points defined by the input grid and covers the horizon of the input spatial reference. A doubler value of zero will maintain the existing resolution of the low precision spatial reference. It is an error to specify a doubler parameter that will result in a grid smaller than the corresponding input grid.
For ProjectedCoordinateSystems or GeographicCoordinateSystems the minimum values of the domain extent are defined just outside the envelope defined by the coordinate system's horizon.
constructHighPrecisionSpatialReference
in interface ISpatialReferenceFactory3
inSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)xyDoubler
- The xyDoubler (in)zDoubler
- The zDoubler (in)mDoubler
- The mDoubler (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference constructLowPrecisionSpatialReference(boolean bMatchPrecision, ISpatialReference inSR, IEnvelope dataExtent) throws IOException, AutomationException
ConstructLowPrecisionSpatialReference creates a low precision copy of an existing high precision spatial reference.
constructLowPrecisionSpatialReference
in interface ISpatialReferenceFactory3
bMatchPrecision
- The bMatchPrecision (in)inSR
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)dataExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void createOwnedCS(int[] ppInOutCoordSys) throws IOException, AutomationException
createOwnedCS
in interface ISpatialReferenceSingletonManager
ppInOutCoordSys
- The ppInOutCoordSys (A COM typedef) (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void commitIdentity(int[] ppInOutCoordSys) throws IOException, AutomationException
commitIdentity
in interface ISpatialReferenceSingletonManager
ppInOutCoordSys
- The ppInOutCoordSys (A COM typedef) (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findFactoryCS(int factoryCSCode, int[] ppOutCoordSys) throws IOException, AutomationException
findFactoryCS
in interface ISpatialReferenceSingletonManager
factoryCSCode
- The factoryCSCode (in)ppOutCoordSys
- The ppOutCoordSys (A COM typedef) (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void releaseCoordSys(int pInCoordSys) throws IOException, AutomationException
releaseCoordSys
in interface ISpatialReferenceSingletonManager
pInCoordSys
- The pInCoordSys (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void remoteCreateInstance(GUID riid, Object[] ppvObject) throws IOException, AutomationException
remoteCreateInstance
in interface IClassFactory
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppvObject
- A reference to another Object (IUnknown) (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void remoteLockServer(int fLock) throws IOException, AutomationException
remoteLockServer
in interface IClassFactory
fLock
- The fLock (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 |