com.esri.arcgis.geometry
Class GeometryServerImpl

java.lang.Object
  extended by com.esri.arcgis.geometry.GeometryServerImpl
All Implemented Interfaces:
IGeometryServer, IGeometryServer2, IGeometryServer3, com.esri.arcgis.interop.RemoteObjRef, ILogSupport, IObjectActivate, IObjectConstruct, IRequestHandler, IRequestHandler2, ISupportErrorInfo, java.io.Serializable

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

COM Class 'GeometryServerImpl'. Generated 3/19/2015 1:20:44 PM from 'C:\ArcGIS\COM\esriGeometry.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 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 =

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.geometry.IGeometryServer3
IID, IID710b159c_a771_4bc7_bdd7_8779ccfe3821, xxDummy
 
Fields inherited from interface com.esri.arcgis.geometry.IGeometryServer2
IIDf3b51e61_2b28_4033_9615_d93a76171a85
 
Fields inherited from interface com.esri.arcgis.geometry.IGeometryServer
IIDcb6db57f_ca37_485d_b0a5_0931fa62ab84
 
Constructor Summary
GeometryServerImpl()
          Constructs a GeometryServerImpl using ArcGIS Engine.
GeometryServerImpl(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GeometryServerImpl theGeometryServerImpl = (GeometryServerImpl) 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.
 IGeometryArray bufferGeodesic(ISpatialReference pInSR, ISpatialReference pOutSR, IDoubleArray pDistances, double bufferDeviation, ILinearUnit pLinearDistanceUnit, boolean bUnion, IGeometryArray pInGeometries)
          Constructs true buffer regions around Points, lines and polygons using true geodesic distances and directions.
 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
 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.
 void getAreasAndLengthsGeodesic(ISpatialReference pSR, IPolygonArray pPolygons, ILinearUnit pLengthUnit, ILinearUnit pAreaUnit, int areaUnitEnum, IDoubleArray[] ppAreas, IDoubleArray[] ppLengths)
          Returns true geodesic area and geodesic perimeter length for each input polygon.
 void getAreasAndLengthsPreserveShape(ISpatialReference pSR, IPolygonArray pPolygons, ILinearUnit pLengthUnit, ILinearUnit pAreaUnit, int areaUnitEnum, IDoubleArray[] ppAreas, IDoubleArray[] ppLengths)
          Returns true area and perimeter length for each input polygon.
static java.lang.String getClsid()
          getClsid.
 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.
 IDoubleArray getLengthsPreserveShape(ISpatialReference pSR, IPolylineArray polylines, ILinearUnit pLengthUnit)
          Returns true length of each polyline.
 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 GeometryServerImpl.
 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

GeometryServerImpl

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

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

GeometryServerImpl

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

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

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

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.

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.

bufferGeodesic

public IGeometryArray bufferGeodesic(ISpatialReference pInSR,
                                     ISpatialReference pOutSR,
                                     IDoubleArray pDistances,
                                     double bufferDeviation,
                                     ILinearUnit pLinearDistanceUnit,
                                     boolean bUnion,
                                     IGeometryArray pInGeometries)
                              throws java.io.IOException,
                                     AutomationException
Constructs true buffer regions around Points, lines and polygons using true geodesic distances and directions.

Specified by:
bufferGeodesic in interface IGeometryServer3
Parameters:
pInSR - 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)
bufferDeviation - The bufferDeviation (in)
pLinearDistanceUnit - A reference to a com.esri.arcgis.geometry.ILinearUnit (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.

getAreasAndLengthsGeodesic

public void getAreasAndLengthsGeodesic(ISpatialReference pSR,
                                       IPolygonArray pPolygons,
                                       ILinearUnit pLengthUnit,
                                       ILinearUnit pAreaUnit,
                                       int areaUnitEnum,
                                       IDoubleArray[] ppAreas,
                                       IDoubleArray[] ppLengths)
                                throws java.io.IOException,
                                       AutomationException
Returns true geodesic area and geodesic perimeter length for each input polygon.

Specified by:
getAreasAndLengthsGeodesic in interface IGeometryServer3
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pPolygons - 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.

getAreasAndLengthsPreserveShape

public void getAreasAndLengthsPreserveShape(ISpatialReference pSR,
                                            IPolygonArray pPolygons,
                                            ILinearUnit pLengthUnit,
                                            ILinearUnit pAreaUnit,
                                            int areaUnitEnum,
                                            IDoubleArray[] ppAreas,
                                            IDoubleArray[] ppLengths)
                                     throws java.io.IOException,
                                            AutomationException
Returns true area and perimeter length for each input polygon.

Specified by:
getAreasAndLengthsPreserveShape in interface IGeometryServer3
Parameters:
pSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pPolygons - 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.

getLengthsPreserveShape

public IDoubleArray getLengthsPreserveShape(ISpatialReference pSR,
                                            IPolylineArray polylines,
                                            ILinearUnit pLengthUnit)
                                     throws java.io.IOException,
                                            AutomationException
Returns true length of each polyline.

Specified by:
getLengthsPreserveShape in interface IGeometryServer3
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.