|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.geometry.IGeometryProxy
Provides access to members that describe properties and behavior of all geometric objects.
| Field Summary | |
static java.lang.Class |
targetClass
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF |
| Constructor Summary | |
|
IGeometryProxy()
For internal use only |
|
IGeometryProxy(java.lang.Object obj)
|
protected |
IGeometryProxy(java.lang.Object obj,
java.lang.String iid)
|
|
IGeometryProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
|
protected |
IGeometryProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
|
| Method Summary | |
void |
addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
Adds a Java object to be a listener for a specific kind of event generated by the COM object. |
void |
geoNormalize()
Shifts longitudes, if need be, into a continuous range of 360 degrees. |
void |
geoNormalizeFromLongitude(double longitude)
Normalizes longitudes into a continuous range containing the longitude. |
int |
getDimension()
The topological dimension of this geometry. |
IEnvelope |
getEnvelope()
Creates a copy of this geometry's envelope and returns it. |
int |
getGeometryType()
The type of this geometry. |
ISpatialReference |
getSpatialReference()
The spatial reference associated with this geometry. |
boolean |
isEmpty()
Indicates whether this geometry contains any points. |
void |
project(ISpatialReference newReferenceSystem)
Projects this geometry into a new spatial reference. |
void |
queryEnvelope(IEnvelope outEnvelope)
Copies this geometry's envelope properties into the specified envelope. |
void |
removeListener(java.lang.String iidStr,
java.lang.Object theListener)
Removes a Java object as a listener to events generated by a COM object. |
void |
setEmpty()
Removes all points from this geometry. |
void |
setSpatialReferenceByRef(ISpatialReference spatialRef)
The spatial reference associated with this geometry. |
void |
snapToSpatialReference()
Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.Class targetClass
| Constructor Detail |
public IGeometryProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
throws java.net.UnknownHostException,
java.io.IOException
public IGeometryProxy()
public IGeometryProxy(java.lang.Object obj)
throws java.io.IOException
protected IGeometryProxy(java.lang.Object obj,
java.lang.String iid)
throws java.io.IOException
protected IGeometryProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
throws java.io.IOException
| Method Detail |
public void addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
throws java.io.IOException
Dispatch
addListener in class DispatchiidStr - the ID of the outgoing interface, implemented by the listenertheListener - the object to be informed of the eventstheSource - the proxy class that represents the COM class that is the source of the events
java.io.IOException
public void removeListener(java.lang.String iidStr,
java.lang.Object theListener)
throws java.io.IOException
Dispatch
removeListener in class DispatchiidStr - the ID of the outgoing interface, implemented by the listenertheListener - the object that no longer wishes to be informed of the events
java.io.IOException
public int getGeometryType()
throws java.io.IOException,
AutomationException
IGeometryesriGeometryNull = 0
esriGeometryPoint = 1
esriGeometryMultipoint = 2
esriGeometryPolyline = 3
esriGeometryPolygon = 4
esriGeometryEnvelope = 5
esriGeometryPath = 6
esriGeometryAny = 7
esriGeometryMultiPatch = 9
esriGeometryRing = 11
esriGeometryLine = 13
esriGeometryCircularArc = 14
esriGeometryBezier3Curve = 15
esriGeometryEllipticArc = 16
esriGeometryBag = 17
esriGeometryTriangleStrip = 18
esriGeometryTriangleFan = 19
esriGeometryRay = 20
esriGeometrySphere = 21
getGeometryType in interface IGeometryjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDimension()
throws java.io.IOException,
AutomationException
IGeometryReturns the dimension of the geometry object based on the geometry's type.

getDimension in interface IGeometryAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ISpatialReference getSpatialReference()
throws java.io.IOException,
AutomationException
IGeometryReturns and sets the Spatial Reference in which the geometry exists. If the spatial reference has not been set the property will return an empty ISpatialReference instance.
getSpatialReference in interface IGeometryAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setSpatialReferenceByRef(ISpatialReference spatialRef)
throws java.io.IOException,
AutomationException
IGeometry
setSpatialReferenceByRef in interface IGeometryspatialRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isEmpty()
throws java.io.IOException,
AutomationException
IGeometry
isEmpty in interface IGeometryjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEmpty()
throws java.io.IOException,
AutomationException
IGeometry
setEmpty in interface IGeometryjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryEnvelope(IEnvelope outEnvelope)
throws java.io.IOException,
AutomationException
IGeometryReturns the unique Envelope that binds the Geometry object. This is the smallest Envelope that Contains the object.
Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

queryEnvelope in interface IGeometryoutEnvelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnvelope getEnvelope()
throws java.io.IOException,
AutomationException
IGeometryReturns the unique Envelope that binds the Geometry object. This is the smallest Envelope that Contains the object.

getEnvelope in interface IGeometryjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void project(ISpatialReference newReferenceSystem)
throws java.io.IOException,
AutomationException
IGeometryTo Project, the geometry needs to have a Spatial Reference set, and not have an UnknownCoordinateSystem. The new spatial reference system passed to the method defines the output coordinate system. If either spatial reference is Unknown, the coordinates are not changed. The Z and measure values are not changed by the Project method.
A geometry is not densified before it is projected. This can lead to the output geometries not reflecting the 'true' shape in the new coordinate system. A straight line in one coordinate system is not necessarily a straight line in a different coordinate system. Use IGeometry2::ProjectEx if you want to densify the geometries while they are projected.
Note: If the from/to spatial references have different geographic coordinate systems, the Project method looks for a GeoTransformationsOperationSet. If the set of Geotransformations is present in memory, Project will use it to perform a geographic/datum Transformation. To use a specific geotransformation, use the IGeometry2::ProjectEx method.
project in interface IGeometrynewReferenceSystem - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void snapToSpatialReference()
throws java.io.IOException,
AutomationException
IGeometry
snapToSpatialReference in interface IGeometryjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void geoNormalize()
throws java.io.IOException,
AutomationException
IGeometry
geoNormalize in interface IGeometryAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void geoNormalizeFromLongitude(double longitude)
throws java.io.IOException,
AutomationException
IGeometry
geoNormalizeFromLongitude in interface IGeometrylongitude - The longitude (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||