com.esri.arcgis.geodatabase
Class GeometryServer

java.lang.Object
  extended by com.esri.arcgis.geodatabase.GeometryServer
All Implemented Interfaces:
IGeometryServer, IGeometryServer2, com.esri.arcgis.interop.RemoteObjRef, IServerObject, IServerObjectExtensionManager, ILogSupport, IObjectActivate, IObjectConstruct, IRequestHandler, IRequestHandler2, ISupportErrorInfo, java.io.Serializable

public class GeometryServer
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IObjectConstruct, IRequestHandler, IRequestHandler2, IObjectActivate, ILogSupport, ISupportErrorInfo, IServerObject, IServerObjectExtensionManager, IGeometryServer, IGeometryServer2

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

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IRequestHandler2
IID, IID8319e7d0_8ad1_48ed_aa99_03f9d0c93ba8, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IRequestHandler
IID46a0e2ea_3b64_4a46_bd78_88a1660f35bb
 
Fields inherited from interface com.esri.arcgis.system.IObjectActivate
IID, IIDe3b78022_143e_4e61_9099_ed319ec061e7, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Fields inherited from interface com.esri.arcgis.server.IServerObject
IID, IID0ad6ab40_9d6a_4bf8_8b86_eb89406dfc6c, xxDummy
 
Fields inherited from interface com.esri.arcgis.server.IServerObjectExtensionManager
IID, IID25d8b9dd_c7e8_4da4_bf4b_08a67087ceea, xxDummy
 
Fields inherited from interface com.esri.arcgis.geometry.IGeometryServer2
IID, IIDf3b51e61_2b28_4033_9615_d93a76171a85, xxDummy
 
Fields inherited from interface com.esri.arcgis.geometry.IGeometryServer
IIDcb6db57f_ca37_485d_b0a5_0931fa62ab84
 
Constructor Summary
GeometryServer()
          Constructs a GeometryServer using ArcGIS Engine.
GeometryServer(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GeometryServer theGeometryServer = (GeometryServer) obj;
 
Method Summary
 void activate()
          Activates the object.
 IPolygonArray autoComplete(ISpatialReference pSR, IPolygonArray pInPolygons, IPolylineArray pCompletionLines)
          Discovers polygons bounded by existing polygons and input linework.
 IGeometryArray buffer(ISpatialReference pInSR, ISpatialReference pBufferSR, ISpatialReference pOutSR, IDoubleArray pDistances, IUnit pUnit, boolean bUnion, IGeometryArray pInGeometries)
          Buffers an array of geometries by each distance specified in an array of distances.
 void construct(IPropertySet props)
          Two phase object construction.
 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.
 void deactivate()
          Deactivates the object.
 IGeometryArray densify(ISpatialReference pSR, IGeometryArray pInGeometries, double maxSegmentLength, boolean useDeviationDensification, double densificationParameter)
          Applies the ArcObjects 'Densify' operation to each element of the geometry array.
 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).
 boolean equals(java.lang.Object o)
          Compare this object with another
 IServerObjectExtension findExtensionByCLSID(java.lang.String cLSID)
          Returns a server object extension found using a string representation of its class ID.
 IServerObjectExtension findExtensionByTypeName(java.lang.String name)
          Returns a server object extension found using its type name.
 ISpatialReference findSRByWKID(java.lang.String authority, int wKID, int wKID_Z, boolean bDefaultXYResolution, boolean bDefaultXYTolerance)
          Defines an SR based upon its well known identifier (WKID) and optionally a WKID for a vertical datum.
 ISpatialReference findSRByWKT(java.lang.String wKT, java.lang.String wKT_Z, boolean bDefaultXYResolution, boolean bDefaultXYTolerance)
          Defines a spatial reference object based upon its well known text string (WKT) and optionally a WKT for a vertical datum.
 IUnit findUnitsByWKID(java.lang.String authority, int wKID)
          Defines a unit object based upon its well known identified (WKID).
 IUnit findUnitsByWKT(java.lang.String wKT)
          Defines a unit object based upon its well known text string.
 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 getAreasAndLengths(ISpatialReference pSR, IPolygonArray pInPolygons, IDoubleArray[] ppAreas, IDoubleArray[] ppLengths)
          Calculates areas and perimeter lengths for each polygon in the specified array.
 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.
static java.lang.String getClsid()
          getClsid.
 java.lang.String getConfigurationName()
          Name of the server object configuration that defines the server object.
 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.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 IPointArray getLabelPoints(ISpatialReference pSR, IPolygonArray pInPolygons)
          Calculates an interior point for each polygon.
 IDoubleArray getLengths(ISpatialReference pSR, IPolylineArray pInPolylines)
          Calculates the length of eacch polyline in the specified array.
 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.
 java.lang.String getTypeName()
          Type of the server object (MapServer or GeocodeServer).
 byte[] handleBinaryRequest(byte[] request)
          Handles a binary request.
 byte[] handleBinaryRequest2(java.lang.String capabilities, byte[] request)
          Handles a binary request with explicit capabilities.
 java.lang.String handleStringRequest(java.lang.String capabilities, java.lang.String request)
          Handles a SOAP string request.
 int hashCode()
          the hashcode for this object
 void initLogging(ILog log)
          Initializes an object with a log.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 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).
 IGeometryArray project(ISpatialReference pInSR, ISpatialReference pOutSR, int xFormDir, ITransformation pXForm, IEnvelope pExtent, IGeometryArray pInGeometries)
          Projects an array of geometries from their current spatial reference (pInSR) to a destination spatial reference (pOutSR).
 IRelationResultArray relation(ISpatialReference pSR, IGeometryArray pInGA1, IGeometryArray pInGA2, int r, java.lang.String param)
          Determines the pairs of geometries from the input geometry arrays that participate in the specified spatial relation.
 void release()
          Release a GeometryServer.
 IGeometry reshape(ISpatialReference pSR, IGeometry pTarget, IPolyline pReshaper)
          Reshapes the target polyline or polygon.
 IGeometryArray simplify(ISpatialReference pSR, IGeometryArray pInGeometries)
          Applies the ArcObjects 'Simplify' operation to each element of the geometry array.
 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryServer

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

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

GeometryServer

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

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

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 GeometryServer.

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

construct

public void construct(IPropertySet props)
               throws java.io.IOException,
                      AutomationException
Two phase object construction.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

handleBinaryRequest

public byte[] handleBinaryRequest(byte[] request)
                           throws java.io.IOException,
                                  AutomationException
Handles a binary request.

Specified by:
handleBinaryRequest in interface IRequestHandler
Parameters:
request - An unsigned byte (in)
Returns:
An unsigned byte
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

handleStringRequest

public java.lang.String handleStringRequest(java.lang.String capabilities,
                                            java.lang.String request)
                                     throws java.io.IOException,
                                            AutomationException
Handles a SOAP string request.

Specified by:
handleStringRequest in interface IRequestHandler
Parameters:
capabilities - The capabilities (in)
request - The request (in)
Returns:
The response
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

handleBinaryRequest2

public byte[] handleBinaryRequest2(java.lang.String capabilities,
                                   byte[] request)
                            throws java.io.IOException,
                                   AutomationException
Handles a binary request with explicit capabilities.

Specified by:
handleBinaryRequest2 in interface IRequestHandler2
Parameters:
capabilities - The capabilities (in)
request - An unsigned byte (in)
Returns:
An unsigned byte
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

activate

public void activate()
              throws java.io.IOException,
                     AutomationException
Activates the object.

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

deactivate

public void deactivate()
                throws java.io.IOException,
                       AutomationException
Deactivates the object.

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

initLogging

public void initLogging(ILog log)
                 throws java.io.IOException,
                        AutomationException
Initializes an object with a log.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getConfigurationName

public java.lang.String getConfigurationName()
                                      throws java.io.IOException,
                                             AutomationException
Name of the server object configuration that defines the server object.

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

getTypeName

public java.lang.String getTypeName()
                             throws java.io.IOException,
                                    AutomationException
Type of the server object (MapServer or GeocodeServer).

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

findExtensionByCLSID

public IServerObjectExtension findExtensionByCLSID(java.lang.String cLSID)
                                            throws java.io.IOException,
                                                   AutomationException
Returns a server object extension found using a string representation of its class ID.

Specified by:
findExtensionByCLSID in interface IServerObjectExtensionManager
Parameters:
cLSID - The cLSID (in)
Returns:
A reference to a com.esri.arcgis.server.IServerObjectExtension
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findExtensionByTypeName

public IServerObjectExtension findExtensionByTypeName(java.lang.String name)
                                               throws java.io.IOException,
                                                      AutomationException
Returns a server object extension found using its type name.

Specified by:
findExtensionByTypeName in interface IServerObjectExtensionManager
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.server.IServerObjectExtension
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

project

public IGeometryArray project(ISpatialReference pInSR,
                              ISpatialReference pOutSR,
                              int xFormDir,
                              ITransformation pXForm,
                              IEnvelope pExtent,
                              IGeometryArray pInGeometries)
                       throws java.io.IOException,
                              AutomationException
Projects an array of geometries from their current spatial reference (pInSR) to a destination spatial reference (pOutSR). The projection process can optionally include a datum transformation if the source and destination SRs have different GCSs.

Specified by:
project in interface IGeometryServer
Parameters:
pInSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pOutSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
xFormDir - A com.esri.arcgis.geometry.esriTransformDirection constant (in)
pXForm - A reference to a com.esri.arcgis.geometry.ITransformation (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
pInGeometries - A reference to a com.esri.arcgis.geometry.IGeometryArray (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.

buffer

public IGeometryArray buffer(ISpatialReference pInSR,
                             ISpatialReference pBufferSR,
                             ISpatialReference pOutSR,
                             IDoubleArray pDistances,
                             IUnit pUnit,
                             boolean bUnion,
                             IGeometryArray pInGeometries)
                      throws java.io.IOException,
                             AutomationException
Buffers an array of geometries by each distance specified in an array of distances. The distance units can optionally be specified. Geometries buffered at a given distance can optionally be unioned together.

Specified by:
buffer in interface IGeometryServer
Parameters:
pInSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pBufferSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pOutSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pDistances - A reference to a com.esri.arcgis.system.IDoubleArray (in)
pUnit - A reference to a com.esri.arcgis.geometry.IUnit (in)
bUnion - The bUnion (in)
pInGeometries - A reference to a com.esri.arcgis.geometry.IGeometryArray (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.

relation

public IRelationResultArray relation(ISpatialReference pSR,
                                     IGeometryArray pInGA1,
                                     IGeometryArray pInGA2,
                                     int r,
                                     java.lang.String param)
                              throws java.io.IOException,
                                     AutomationException
Determines the pairs of geometries from the input geometry arrays that participate in the specified spatial relation.

Specified by:
relation in interface IGeometryServer
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGA1 - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
pInGA2 - A reference to a com.esri.arcgis.geometry.IGeometryArray (in)
r - A com.esri.arcgis.geometry.esriSpatialRelationEnum constant (in)
param - The param (in)
Returns:
A reference to a com.esri.arcgis.geometry.IRelationResultArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

simplify

public IGeometryArray simplify(ISpatialReference pSR,
                               IGeometryArray pInGeometries)
                        throws java.io.IOException,
                               AutomationException
Applies the ArcObjects 'Simplify' operation to each element of the geometry array.

Specified by:
simplify in interface IGeometryServer
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInGeometries - A reference to a com.esri.arcgis.geometry.IGeometryArray (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.

densify

public IGeometryArray densify(ISpatialReference pSR,
                              IGeometryArray pInGeometries,
                              double maxSegmentLength,
                              boolean useDeviationDensification,
                              double densificationParameter)
                       throws java.io.IOException,
                              AutomationException
Applies the ArcObjects 'Densify' operation to each element of the geometry array.

Specified by:
densify in interface IGeometryServer
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)
useDeviationDensification - The useDeviationDensification (in)
densificationParameter - The densificationParameter (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.

findSRByWKID

public ISpatialReference findSRByWKID(java.lang.String authority,
                                      int wKID,
                                      int wKID_Z,
                                      boolean bDefaultXYResolution,
                                      boolean bDefaultXYTolerance)
                               throws java.io.IOException,
                                      AutomationException
Defines an SR based upon its well known identifier (WKID) and optionally a WKID for a vertical datum. The resolution and xy tolerances are either computed from the sr horizon or set to defaults. 'authority' is typically either 'EPSG' or 'Esri'.

Specified by:
findSRByWKID in interface IGeometryServer
Parameters:
authority - The authority (in)
wKID - The wKID (in)
wKID_Z - The wKID_Z (in)
bDefaultXYResolution - The bDefaultXYResolution (in)
bDefaultXYTolerance - The bDefaultXYTolerance (in)
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.

findSRByWKT

public ISpatialReference findSRByWKT(java.lang.String wKT,
                                     java.lang.String wKT_Z,
                                     boolean bDefaultXYResolution,
                                     boolean bDefaultXYTolerance)
                              throws java.io.IOException,
                                     AutomationException
Defines a spatial reference object based upon its well known text string (WKT) and optionally a WKT for a vertical datum. The resolution and xy tolerances are either computed from the sr horizon or set to defaults. The output sr is always high precision.

Specified by:
findSRByWKT in interface IGeometryServer
Parameters:
wKT - The wKT (in)
wKT_Z - The wKT_Z (in)
bDefaultXYResolution - The bDefaultXYResolution (in)
bDefaultXYTolerance - The bDefaultXYTolerance (in)
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.

findUnitsByWKID

public IUnit findUnitsByWKID(java.lang.String authority,
                             int wKID)
                      throws java.io.IOException,
                             AutomationException
Defines a unit object based upon its well known identified (WKID). 'authority' is typically either 'EPSG' or 'Esri'.

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

findUnitsByWKT

public IUnit findUnitsByWKT(java.lang.String wKT)
                     throws java.io.IOException,
                            AutomationException
Defines a unit object based upon its well known text string.

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

getAreasAndLengths

public void getAreasAndLengths(ISpatialReference pSR,
                               IPolygonArray pInPolygons,
                               IDoubleArray[] ppAreas,
                               IDoubleArray[] ppLengths)
                        throws java.io.IOException,
                               AutomationException
Calculates areas and perimeter lengths for each polygon in the specified array.

Specified by:
getAreasAndLengths in interface IGeometryServer
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInPolygons - A reference to a com.esri.arcgis.geometry.IPolygonArray (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.

getLengths

public IDoubleArray getLengths(ISpatialReference pSR,
                               IPolylineArray pInPolylines)
                        throws java.io.IOException,
                               AutomationException
Calculates the length of eacch polyline in the specified array.

Specified by:
getLengths in interface IGeometryServer
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pInPolylines - A reference to a com.esri.arcgis.geometry.IPolylineArray (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.

getLabelPoints

public IPointArray getLabelPoints(ISpatialReference pSR,
                                  IPolygonArray pInPolygons)
                           throws java.io.IOException,
                                  AutomationException
Calculates an interior point for each polygon.

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

getAreasAndLengths2

public 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.

Specified by:
getAreasAndLengths2 in interface IGeometryServer2
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

public 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.

Specified by:
getLengths2 in interface IGeometryServer2
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

public 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).

Specified by:
densifyGeodesic in interface IGeometryServer2
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

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

Specified by:
getLengthsGeodesic in interface IGeometryServer2
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

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

Specified by:
getDistance in interface IGeometryServer2
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

public 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).

Specified by:
union in interface IGeometryServer2
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

public 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.

Specified by:
intersect in interface IGeometryServer2
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

public 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).

Specified by:
difference in interface IGeometryServer2
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

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

Specified by:
cut in interface IGeometryServer2
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

public 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).

Specified by:
trimExtend in interface IGeometryServer2
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

public 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).

Specified by:
offset in interface IGeometryServer2
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

public 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).

Specified by:
generalize in interface IGeometryServer2
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

public 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.

Specified by:
reshape in interface IGeometryServer2
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

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

Specified by:
convexHull in interface IGeometryServer2
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

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

Specified by:
autoComplete in interface IGeometryServer2
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

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

Specified by:
getDistanceGeodesic in interface IGeometryServer2
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.