com.esri.arcgis.geometry
Interface ILine2

All Superinterfaces:
ICurve, IGeometry, ILine, Serializable
All Known Subinterfaces:
ILine3
All Known Implementing Classes:
Line

public interface ILine2
extends ILine, Serializable

Provides access to the coordinates of a line segment in the form of Well Known Structures (WKS).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void putWKSCoords(_WKSPoint from, _WKSPoint to)
          From and To become the new endpoints of this line.
 void queryWKSCoords(_WKSPoint[] from, _WKSPoint[] to)
          Returns the (x,y) coordinates of this line's endpoints.
 
Methods inherited from interface com.esri.arcgis.geometry.ILine
getAngle, putCoords, queryCoords
 
Methods inherited from interface com.esri.arcgis.geometry.ICurve
getFromPoint, getLength, getSubcurve, getToPoint, isClosed, queryFromPoint, queryNormal, queryPoint, queryPointAndDistance, queryTangent, queryToPoint, reverseOrientation, setFromPoint, setToPoint
 
Methods inherited from interface com.esri.arcgis.geometry.IGeometry
geoNormalize, geoNormalizeFromLongitude, getDimension, getEnvelope, getGeometryType, getSpatialReference, isEmpty, project, queryEnvelope, setEmpty, setSpatialReferenceByRef, snapToSpatialReference
 

Method Detail

putWKSCoords

void putWKSCoords(_WKSPoint from,
                  _WKSPoint to)
                  throws IOException,
                         AutomationException
From and To become the new endpoints of this line. Any existing attributes are deleted.

Remarks

The from and to parameters are WKSPoint structures instead of Point objects. If you are not interested in using or preserving vertex attributes then PutWKSCoords and QueryWKSCoords can be a quicker way to modify and obtain the xy coordinates defining the line.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
from - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
to - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryWKSCoords

void queryWKSCoords(_WKSPoint[] from,
                    _WKSPoint[] to)
                    throws IOException,
                           AutomationException
Returns the (x,y) coordinates of this line's endpoints.

Remarks

The from and to parameters are WKSPoint structures instead of Point objects. If you are not interested in using or preserving vertex attributes then PutWKSCoords and QueryWKSCoords can be a quicker way to modify and obtain the xy coordinates defining the line.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
from - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
to - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.