com.esri.arcgis.datasourcesraster
Class MapPoint

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.MapPoint
All Implemented Interfaces:
IMapPoint, IGeometry, IPoint, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class MapPoint
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IMapPoint

COM Class 'MapPoint'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriDataSourcesRaster.olb'

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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.datasourcesraster.IMapPoint
IID, IID5f3a89c1_3ed5_4f56_bdf5_22008d23b143, xxDummy
 
Fields inherited from interface com.esri.arcgis.geometry.IPoint
IID1b077915_38c5_11d0_92d2_00805f7c28b0
 
Fields inherited from interface com.esri.arcgis.geometry.IGeometry
IID1b07790d_38c5_11d0_92d2_00805f7c28b0
 
Constructor Summary
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;
 
Method Summary
 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()
          Deprecated. Internal use only.
 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 a MapPoint.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPoint

public MapPoint()
         throws java.io.IOException,
                java.net.UnknownHostException
Constructs a MapPoint using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

MapPoint

public MapPoint(java.lang.Object obj)
         throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
MapPoint theMapPoint = (MapPoint) obj;

Construct a MapPoint using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to MapPoint.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a MapPoint.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

getImageID

public java.lang.String getImageID()
                            throws java.io.IOException,
                                   AutomationException
The image ID of this IMapPoint.

Specified by:
getImageID in interface IMapPoint
Returns:
The pImageID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setImageID

public void setImageID(java.lang.String pImageID)
                throws java.io.IOException,
                       AutomationException
The image ID of this IMapPoint.

Specified by:
setImageID in interface IMapPoint
Parameters:
pImageID - The pImageID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMapPointID

public java.lang.String getMapPointID()
                               throws java.io.IOException,
                                      AutomationException
The identification string of this IMapPoint.

Specified by:
getMapPointID in interface IMapPoint
Returns:
The pMapPointID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMapPointID

public void setMapPointID(java.lang.String pMapPointID)
                   throws java.io.IOException,
                          AutomationException
The identification string of this IMapPoint.

Specified by:
setMapPointID in interface IMapPoint
Parameters:
pMapPointID - The pMapPointID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPointingErrorCovarianceMatrix

public IDoubleArray getPointingErrorCovarianceMatrix()
                                              throws java.io.IOException,
                                                     AutomationException
The pointing error covariance matrix that is associated with this IMapPoint.

Specified by:
getPointingErrorCovarianceMatrix in interface IMapPoint
Returns:
A reference to a com.esri.arcgis.system.IDoubleArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPointingErrorCovarianceMatrix

public void setPointingErrorCovarianceMatrix(IDoubleArray ppPointingErrCovMatrix)
                                      throws java.io.IOException,
                                             AutomationException
The pointing error covariance matrix that is associated with this IMapPoint.

Specified by:
setPointingErrorCovarianceMatrix in interface IMapPoint
Parameters:
ppPointingErrCovMatrix - A reference to a com.esri.arcgis.system.IDoubleArray (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryCoords

public void queryCoords(double[] x,
                        double[] y)
                 throws java.io.IOException,
                        AutomationException
Returns the X and Y coordinates.

Specified by:
queryCoords in interface IPoint
Parameters:
x - The x (out: use single element array)
y - The y (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

putCoords

public void putCoords(double x,
                      double y)
               throws java.io.IOException,
                      AutomationException
Sets the X and Y coordinates.

Specified by:
putCoords in interface IPoint
Parameters:
x - The x (in)
y - The y (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getX

public double getX()
            throws java.io.IOException,
                   AutomationException
The X coordinate.

Specified by:
getX in interface IPoint
Returns:
The x
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setX

public void setX(double x)
          throws java.io.IOException,
                 AutomationException
The X coordinate.

Specified by:
setX in interface IPoint
Parameters:
x - The x (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getY

public double getY()
            throws java.io.IOException,
                   AutomationException
The Y coordinate.

Specified by:
getY in interface IPoint
Returns:
The y
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setY

public void setY(double y)
          throws java.io.IOException,
                 AutomationException
The Y coordinate.

Specified by:
setY in interface IPoint
Parameters:
y - The y (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getZ

public double getZ()
            throws java.io.IOException,
                   AutomationException
The Z attribute.

Specified by:
getZ in interface IPoint
Returns:
The z
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setZ

public void setZ(double z)
          throws java.io.IOException,
                 AutomationException
The Z attribute.

Specified by:
setZ in interface IPoint
Parameters:
z - The z (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getM

public double getM()
            throws java.io.IOException,
                   AutomationException
The measure attribute.

Specified by:
getM in interface IPoint
Returns:
The m
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setM

public void setM(double m)
          throws java.io.IOException,
                 AutomationException
The measure attribute.

Specified by:
setM in interface IPoint
Parameters:
m - The m (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getID

public int getID()
          throws java.io.IOException,
                 AutomationException
The Point ID attribute.

Specified by:
getID in interface IPoint
Returns:
The pointID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setID

public void setID(int pointID)
           throws java.io.IOException,
                  AutomationException
The Point ID attribute.

Specified by:
setID in interface IPoint
Parameters:
pointID - The pointID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

constrainDistance

public void constrainDistance(double constraintRadius,
                              IPoint anchor)
                       throws java.io.IOException,
                              AutomationException
Projects this point to the perimeter of the circle defined by radius and anchor.

Specified by:
constrainDistance in interface IPoint
Parameters:
constraintRadius - The constraintRadius (in)
anchor - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

constrainAngle

public void constrainAngle(double constraintAngle,
                           IPoint anchor,
                           boolean allowOpposite)
                    throws java.io.IOException,
                           AutomationException
Projects this point to the point on the infinite line defined by anchor and angle (in radians). If allowOpposite is true, then the point can also snap to angle + pi radians.

Specified by:
constrainAngle in interface IPoint
Parameters:
constraintAngle - The constraintAngle (in)
anchor - A reference to a com.esri.arcgis.geometry.IPoint (in)
allowOpposite - The allowOpposite (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

compare

public int compare(IPoint otherPoint)
            throws java.io.IOException,
                   AutomationException
Compares X, Y, M, Z, ID of this point (in that order) with that of the other point. Returns -1 if this point's value is less, 1 if greater, and 0 otherwise. Useful for sorting a group of points.

Specified by:
compare in interface IPoint
Parameters:
otherPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The result
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometryType

public int getGeometryType()
                    throws java.io.IOException,
                           AutomationException
The type of this geometry.

Specified by:
getGeometryType in interface IGeometry
Returns:
A com.esri.arcgis.geometry.esriGeometryType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDimension

public int getDimension()
                 throws java.io.IOException,
                        AutomationException
The topological dimension of this geometry.

Specified by:
getDimension in interface IGeometry
Returns:
A com.esri.arcgis.geometry.esriGeometryDimension constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
The spatial reference associated with this geometry.

Specified by:
getSpatialReference in interface IGeometry
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSpatialReferenceByRef

public void setSpatialReferenceByRef(ISpatialReference spatialRef)
                              throws java.io.IOException,
                                     AutomationException
The spatial reference associated with this geometry.

Specified by:
setSpatialReferenceByRef in interface IGeometry
Parameters:
spatialRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEmpty

public boolean isEmpty()
                throws java.io.IOException,
                       AutomationException
Indicates whether this geometry contains any points.

Specified by:
isEmpty in interface IGeometry
Returns:
The isEmpty
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setEmpty

public void setEmpty()
              throws java.io.IOException,
                     AutomationException
Removes all points from this geometry.

Specified by:
setEmpty in interface IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryEnvelope

public void queryEnvelope(IEnvelope outEnvelope)
                   throws java.io.IOException,
                          AutomationException
Copies this geometry's envelope properties into the specified envelope.

Specified by:
queryEnvelope in interface IGeometry
Parameters:
outEnvelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEnvelope

public IEnvelope getEnvelope()
                      throws java.io.IOException,
                             AutomationException
Creates a copy of this geometry's envelope and returns it.

Specified by:
getEnvelope in interface IGeometry
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

project

public void project(ISpatialReference newReferenceSystem)
             throws java.io.IOException,
                    AutomationException
Projects this geometry into a new spatial reference.

Specified by:
project in interface IGeometry
Parameters:
newReferenceSystem - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

snapToSpatialReference

public void snapToSpatialReference()
                            throws java.io.IOException,
                                   AutomationException
Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system.

Specified by:
snapToSpatialReference in interface IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

geoNormalize

public void geoNormalize()
                  throws java.io.IOException,
                         AutomationException
Shifts longitudes, if need be, into a continuous range of 360 degrees.

Specified by:
geoNormalize in interface IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

geoNormalizeFromLongitude

public void geoNormalizeFromLongitude(double longitude)
                               throws java.io.IOException,
                                      AutomationException
Normalizes longitudes into a continuous range containing the longitude. This method is obsolete.

Specified by:
geoNormalizeFromLongitude in interface IGeometry
Parameters:
longitude - The longitude (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.