public class MapPoint extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IMapPoint
Description 'Implements interface IMapPoint (a point in map space).' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IID5f3a89c1_3ed5_4f56_bdf5_22008d23b143, xxDummy
IID1b077915_38c5_11d0_92d2_00805f7c28b0
IID1b07790d_38c5_11d0_92d2_00805f7c28b0
Constructor and Description |
---|
MapPoint()
Constructs a MapPoint using ArcGIS Engine.
|
MapPoint(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
MapPoint theMapPoint = (MapPoint) obj; |
Modifier and Type | Method and Description |
---|---|
int |
compare(IPoint otherPoint)
Compares X, Y, M, Z, ID of this point (in that order) with that of the other point.
|
void |
constrainAngle(double constraintAngle,
IPoint anchor,
boolean allowOpposite)
Projects this point to the point on the infinite line defined by anchor and angle (in radians).
|
void |
constrainDistance(double constraintRadius,
IPoint anchor)
Projects this point to the perimeter of the circle defined by radius and anchor.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
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.
|
static java.lang.String |
getClsid()
getClsid.
|
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.
|
int |
getID()
The Point ID attribute.
|
java.lang.String |
getImageID()
The image ID of this IMapPoint.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
double |
getM()
The measure attribute.
|
java.lang.String |
getMapPointID()
The identification string of this IMapPoint.
|
IDoubleArray |
getPointingErrorCovarianceMatrix()
The pointing error covariance matrix that is associated with this IMapPoint.
|
ISpatialReference |
getSpatialReference()
The spatial reference associated with this geometry.
|
double |
getX()
The X coordinate.
|
double |
getY()
The Y coordinate.
|
double |
getZ()
The Z attribute.
|
int |
hashCode()
the hashcode for this object
|
boolean |
isEmpty()
Indicates whether this geometry contains any points.
|
void |
project(ISpatialReference newReferenceSystem)
Projects this geometry into a new spatial reference.
|
void |
putCoords(double x,
double y)
Sets the X and Y coordinates.
|
void |
queryCoords(double[] x,
double[] y)
Returns the X and Y coordinates.
|
void |
queryEnvelope(IEnvelope outEnvelope)
Copies this geometry's envelope properties into the specified envelope.
|
void |
release()
Release this COM object reference
|
void |
setEmpty()
Removes all points from this geometry.
|
void |
setID(int pointID)
The Point ID attribute.
|
void |
setImageID(java.lang.String pImageID)
The image ID of this IMapPoint.
|
void |
setM(double m)
The measure attribute.
|
void |
setMapPointID(java.lang.String pMapPointID)
The identification string of this IMapPoint.
|
void |
setPointingErrorCovarianceMatrix(IDoubleArray ppPointingErrCovMatrix)
The pointing error covariance matrix that is associated with this IMapPoint.
|
void |
setSpatialReferenceByRef(ISpatialReference spatialRef)
The spatial reference associated with this geometry.
|
void |
setX(double x)
The X coordinate.
|
void |
setY(double y)
The Y coordinate.
|
void |
setZ(double z)
The Z attribute.
|
void |
snapToSpatialReference()
Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system.
|
public MapPoint() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic MapPoint(java.lang.Object obj) throws java.io.IOException
MapPoint theMapPoint = (MapPoint) obj;
obj
to MapPoint
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public java.lang.String getImageID() throws java.io.IOException, AutomationException
getImageID
in interface IMapPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setImageID(java.lang.String pImageID) throws java.io.IOException, AutomationException
setImageID
in interface IMapPoint
pImageID
- The pImageID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getMapPointID() throws java.io.IOException, AutomationException
getMapPointID
in interface IMapPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setMapPointID(java.lang.String pMapPointID) throws java.io.IOException, AutomationException
setMapPointID
in interface IMapPoint
pMapPointID
- The pMapPointID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IDoubleArray getPointingErrorCovarianceMatrix() throws java.io.IOException, AutomationException
getPointingErrorCovarianceMatrix
in interface IMapPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setPointingErrorCovarianceMatrix(IDoubleArray ppPointingErrCovMatrix) throws java.io.IOException, AutomationException
setPointingErrorCovarianceMatrix
in interface IMapPoint
ppPointingErrCovMatrix
- A reference to a com.esri.arcgis.system.IDoubleArray (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryCoords(double[] x, double[] y) throws java.io.IOException, AutomationException
queryCoords
in interface IPoint
x
- The x (out: use single element array)y
- The y (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void putCoords(double x, double y) throws java.io.IOException, AutomationException
putCoords
in interface IPoint
x
- The x (in)y
- The y (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getX() throws java.io.IOException, AutomationException
getX
in interface IPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setX(double x) throws java.io.IOException, AutomationException
setX
in interface IPoint
x
- The x (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getY() throws java.io.IOException, AutomationException
getY
in interface IPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setY(double y) throws java.io.IOException, AutomationException
setY
in interface IPoint
y
- The y (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getZ() throws java.io.IOException, AutomationException
getZ
in interface IPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setZ(double z) throws java.io.IOException, AutomationException
setZ
in interface IPoint
z
- The z (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public double getM() throws java.io.IOException, AutomationException
getM
in interface IPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setM(double m) throws java.io.IOException, AutomationException
setM
in interface IPoint
m
- The m (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getID() throws java.io.IOException, AutomationException
getID
in interface IPoint
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setID(int pointID) throws java.io.IOException, AutomationException
setID
in interface IPoint
pointID
- The pointID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void constrainDistance(double constraintRadius, IPoint anchor) throws java.io.IOException, AutomationException
constrainDistance
in interface IPoint
constraintRadius
- The constraintRadius (in)anchor
- A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void constrainAngle(double constraintAngle, IPoint anchor, boolean allowOpposite) throws java.io.IOException, AutomationException
constrainAngle
in interface IPoint
constraintAngle
- The constraintAngle (in)anchor
- A reference to a com.esri.arcgis.geometry.IPoint (in)allowOpposite
- The allowOpposite (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int compare(IPoint otherPoint) throws java.io.IOException, AutomationException
compare
in interface IPoint
otherPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getGeometryType() throws java.io.IOException, AutomationException
getGeometryType
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getDimension() throws java.io.IOException, AutomationException
getDimension
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws java.io.IOException, AutomationException
getSpatialReference
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setSpatialReferenceByRef(ISpatialReference spatialRef) throws java.io.IOException, AutomationException
setSpatialReferenceByRef
in interface IGeometry
spatialRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isEmpty() throws java.io.IOException, AutomationException
isEmpty
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setEmpty() throws java.io.IOException, AutomationException
setEmpty
in interface IGeometry
java.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
queryEnvelope
in interface IGeometry
outEnvelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IEnvelope getEnvelope() throws java.io.IOException, AutomationException
getEnvelope
in interface IGeometry
java.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
project
in interface IGeometry
newReferenceSystem
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void snapToSpatialReference() throws java.io.IOException, AutomationException
snapToSpatialReference
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void geoNormalize() throws java.io.IOException, AutomationException
geoNormalize
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void geoNormalizeFromLongitude(double longitude) throws java.io.IOException, AutomationException
geoNormalizeFromLongitude
in interface IGeometry
longitude
- The longitude (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.