com.esri.arcgis.geometry
Interface IGeometryServer2

All Superinterfaces:
IGeometryServer, java.io.Serializable
All Known Subinterfaces:
IGeometryServer3
All Known Implementing Classes:
GeometryServer, GeometryServerImpl, IGeometryServer2Proxy, IGeometryServer3Proxy

public interface IGeometryServer2
extends IGeometryServer, java.io.Serializable

COM Interface 'IGeometryServer2'. Generated 3/19/2015 1:20:56 PM from 'C:\ArcGIS\COM\esriGeometry.olb'

Description: 'Provides access to more standard operations on geometric 'value' objects. The input geometries are never modified by these operations. Designed for use in building web services or other kinds of distributed applications.' 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 =


Field Summary
static java.lang.String IID
          Deprecated. Internal use only
static int IIDf3b51e61_2b28_4033_9615_d93a76171a85
           
static int xxDummy
          Deprecated. Internal use only
 
Fields inherited from interface com.esri.arcgis.geometry.IGeometryServer
IIDcb6db57f_ca37_485d_b0a5_0931fa62ab84
 
Method Summary
 IPolygonArray autoComplete(ISpatialReference pSR, IPolygonArray pInPolygons, IPolylineArray pCompletionLines)
          Discovers polygons bounded by existing polygons and input linework.
 IGeometry convexHull(ISpatialReference pSR, IGeometryArray pInGeometryArray)
          Computes the convex hull of the input geometries
 IGeometryArray cut(ISpatialReference pSR, IGeometryArray pTargets, IPolyline pCutter, ILongArray[] ppCutIndexes)
          Cuts the target polyline or polygon Cutter.
 IGeometryArray densifyGeodesic(ISpatialReference pSR, IGeometryArray pInGeometries, double maxSegmentLength, ILinearUnit pLengthUnit)
          Densifies geometries by plotting points along the geodesics between existing vertices (uses IPolycurve4::GeodesicDensify).
 IGeometryArray difference(ISpatialReference pSR, IGeometryArray pInGA1, IGeometry pInG2)
          Returns an array of geometries where each result geometry R[i] is (array1[i] difference G2).
 IGeometryArray generalize(ISpatialReference pSR, IGeometryArray pInGA, double maxDeviation, ILinearUnit pDeviationUnit)
          Returns generalized (Douglas-Poiker) versions of the input polylines and polygons (uses IPolycurve::Generalize).
 void getAreasAndLengths2(ISpatialReference pSR, IPolygonArray pInPolygons, ILinearUnit pLengthUnit, ILinearUnit pAreaUnit, int areaUnitEnum, IDoubleArray[] ppAreas, IDoubleArray[] ppLengths)
          Calculates areas and perimeter lengths for each polygon in the specified array.
 double getDistance(ISpatialReference pSR, IGeometry pG1, IGeometry pG2, ILinearUnit pDistanceUnit)
          Reports shortest distance between G1 and G2.
 double getDistanceGeodesic(ISpatialReference pSR, IGeometry pG1, IGeometry pG2, ILinearUnit pDistanceUnit)
          Reports the shortest geodesic distance between G1 and G2.
 IDoubleArray getLengths2(ISpatialReference pSR, IPolylineArray pInPolylines, ILinearUnit pLengthUnit)
          Calculates the length of eacch polyline in the specified array.
 IDoubleArray getLengthsGeodesic(ISpatialReference pSR, IPolylineArray polylines, ILinearUnit pLengthUnit)
          Returns geodesic length of each Polyline.
 IGeometryArray intersect(ISpatialReference pSR, IGeometryArray pInGA1, IGeometry pInG2)
          Returns an array of geometries where each result geometry R[i] is (array1[i] intersect G2.
 IGeometryArray offset(ISpatialReference pSR, IGeometryArray pInGA, double offsetDistance, ILinearUnit pOffsetUnit, int offsetHow, double bevelRatio)
          Returns an array of polylines and polygons that are offset versions of the input polylines and polygons (uses ITopologicalOperator::ConstructOffset).
 IGeometry reshape(ISpatialReference pSR, IGeometry pTarget, IPolyline pReshaper)
          Reshapes the target polyline or polygon.
 IPolylineArray trimExtend(ISpatialReference pSR, IPolylineArray pInPA, IPolyline pTrimExtendTo, int extendHow)
          Trims or extends each polyline in the input array using TrimExtendTo (uses IConstructCurve::ConstructExtended for extension operation).
 IGeometry union(ISpatialReference pSR, IGeometryArray pInGA)
          Returns the topological union of the input geometries (uses ITopologicalOperator::ConstructUnion).
 
Methods inherited from interface com.esri.arcgis.geometry.IGeometryServer
buffer, densify, findSRByWKID, findSRByWKT, findUnitsByWKID, findUnitsByWKT, getAreasAndLengths, getLabelPoints, getLengths, project, relation, simplify
 

Field Detail

IIDf3b51e61_2b28_4033_9615_d93a76171a85

static final int IIDf3b51e61_2b28_4033_9615_d93a76171a85
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

getAreasAndLengths2

void getAreasAndLengths2(ISpatialReference pSR,
                         IPolygonArray pInPolygons,
                         ILinearUnit pLengthUnit,
                         ILinearUnit pAreaUnit,
                         int areaUnitEnum,
                         IDoubleArray[] ppAreas,
                         IDoubleArray[] ppLengths)
                         throws java.io.IOException,
                                AutomationException
Calculates areas and perimeter lengths for each polygon in the specified array. Optionally does unit conversion.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInPolygons - A reference to a com.esri.arcgis.geometry.IPolygonArray (in)
pLengthUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
pAreaUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
areaUnitEnum - A com.esri.arcgis.system.esriAreaUnits constant (in)
ppAreas - A reference to a com.esri.arcgis.system.IDoubleArray (out: use single element array)
ppLengths - A reference to a com.esri.arcgis.system.IDoubleArray (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLengths2

IDoubleArray getLengths2(ISpatialReference pSR,
                         IPolylineArray pInPolylines,
                         ILinearUnit pLengthUnit)
                         throws java.io.IOException,
                                AutomationException
Calculates the length of eacch polyline in the specified array. Optionally does unit conversion.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInPolylines - A reference to a com.esri.arcgis.geometry.IPolylineArray (in)
pLengthUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
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.

densifyGeodesic

IGeometryArray densifyGeodesic(ISpatialReference pSR,
                               IGeometryArray pInGeometries,
                               double maxSegmentLength,
                               ILinearUnit pLengthUnit)
                               throws java.io.IOException,
                                      AutomationException
Densifies geometries by plotting points along the geodesics between existing vertices (uses IPolycurve4::GeodesicDensify).

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGeometries - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
maxSegmentLength - The maxSegmentLength (in)
pLengthUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometryArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLengthsGeodesic

IDoubleArray getLengthsGeodesic(ISpatialReference pSR,
                                IPolylineArray polylines,
                                ILinearUnit pLengthUnit)
                                throws java.io.IOException,
                                       AutomationException
Returns geodesic length of each Polyline.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
polylines - A reference to a com.esri.arcgis.geometry.IPolylineArray (in)
pLengthUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
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.

getDistance

double getDistance(ISpatialReference pSR,
                   IGeometry pG1,
                   IGeometry pG2,
                   ILinearUnit pDistanceUnit)
                   throws java.io.IOException,
                          AutomationException
Reports shortest distance between G1 and G2.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pG1 - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pG2 - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pDistanceUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
Returns:
The pDistance
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

union

IGeometry union(ISpatialReference pSR,
                IGeometryArray pInGA)
                throws java.io.IOException,
                       AutomationException
Returns the topological union of the input geometries (uses ITopologicalOperator::ConstructUnion). The input geometries must have the same dimension (0d, 1d, 2d).

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGA - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

intersect

IGeometryArray intersect(ISpatialReference pSR,
                         IGeometryArray pInGA1,
                         IGeometry pInG2)
                         throws java.io.IOException,
                                AutomationException
Returns an array of geometries where each result geometry R[i] is (array1[i] intersect G2. If G2 is an Envelope, then this is clipping.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGA1 - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
pInG2 - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometryArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

difference

IGeometryArray difference(ISpatialReference pSR,
                          IGeometryArray pInGA1,
                          IGeometry pInG2)
                          throws java.io.IOException,
                                 AutomationException
Returns an array of geometries where each result geometry R[i] is (array1[i] difference G2).

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGA1 - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
pInG2 - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometryArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

cut

IGeometryArray cut(ISpatialReference pSR,
                   IGeometryArray pTargets,
                   IPolyline pCutter,
                   ILongArray[] ppCutIndexes)
                   throws java.io.IOException,
                          AutomationException
Cuts the target polyline or polygon Cutter.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pTargets - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
pCutter - A reference to a com.esri.arcgis.geometry.IPolyline (in)
ppCutIndexes - A reference to a com.esri.arcgis.system.ILongArray (out: use single element array)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometryArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

trimExtend

IPolylineArray trimExtend(ISpatialReference pSR,
                          IPolylineArray pInPA,
                          IPolyline pTrimExtendTo,
                          int extendHow)
                          throws java.io.IOException,
                                 AutomationException
Trims or extends each polyline in the input array using TrimExtendTo (uses IConstructCurve::ConstructExtended for extension operation).

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInPA - A reference to a com.esri.arcgis.geometry.IPolylineArray (in)
pTrimExtendTo - A reference to a com.esri.arcgis.geometry.IPolyline (in)
extendHow - The extendHow (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPolylineArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

offset

IGeometryArray offset(ISpatialReference pSR,
                      IGeometryArray pInGA,
                      double offsetDistance,
                      ILinearUnit pOffsetUnit,
                      int offsetHow,
                      double bevelRatio)
                      throws java.io.IOException,
                             AutomationException
Returns an array of polylines and polygons that are offset versions of the input polylines and polygons (uses ITopologicalOperator::ConstructOffset).

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGA - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
offsetDistance - The offsetDistance (in)
pOffsetUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
offsetHow - The offsetHow (in)
bevelRatio - The bevelRatio (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometryArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generalize

IGeometryArray generalize(ISpatialReference pSR,
                          IGeometryArray pInGA,
                          double maxDeviation,
                          ILinearUnit pDeviationUnit)
                          throws java.io.IOException,
                                 AutomationException
Returns generalized (Douglas-Poiker) versions of the input polylines and polygons (uses IPolycurve::Generalize).

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGA - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
maxDeviation - The maxDeviation (in)
pDeviationUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometryArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reshape

IGeometry reshape(ISpatialReference pSR,
                  IGeometry pTarget,
                  IPolyline pReshaper)
                  throws java.io.IOException,
                         AutomationException
Reshapes the target polyline or polygon. The reshaping polyline can have only one part. If the target was not reshaped, an empty geometry of the saem type is returned.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pTarget - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pReshaper - A reference to a com.esri.arcgis.geometry.IPolyline (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

convexHull

IGeometry convexHull(ISpatialReference pSR,
                     IGeometryArray pInGeometryArray)
                     throws java.io.IOException,
                            AutomationException
Computes the convex hull of the input geometries

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGeometryArray - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

autoComplete

IPolygonArray autoComplete(ISpatialReference pSR,
                           IPolygonArray pInPolygons,
                           IPolylineArray pCompletionLines)
                           throws java.io.IOException,
                                  AutomationException
Discovers polygons bounded by existing polygons and input linework.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInPolygons - A reference to a com.esri.arcgis.geometry.IPolygonArray (in)
pCompletionLines - A reference to a com.esri.arcgis.geometry.IPolylineArray (in)
Returns:
A reference to a com.esri.arcgis.geometry.IPolygonArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDistanceGeodesic

double getDistanceGeodesic(ISpatialReference pSR,
                           IGeometry pG1,
                           IGeometry pG2,
                           ILinearUnit pDistanceUnit)
                           throws java.io.IOException,
                                  AutomationException
Reports the shortest geodesic distance between G1 and G2.

Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pG1 - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pG2 - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pDistanceUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (in)
Returns:
The pDistanceGeodesic
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.