Interface IGeometryServer3

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll

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.

[Guid("710B159C-A771-4BC7-BDD7-8779CCFE3821")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IGeometryServer3 : IGeometryServer2, IGeometryServer

Methods

AutoComplete(ISpatialReference, IPolygonArray, IPolylineArray)

IPolygonArray AutoComplete(ISpatialReference pSR, IPolygonArray pInPolygons, IPolylineArray pCompletionLines)

Parameters

pSR ISpatialReference
pInPolygons IPolygonArray
pCompletionLines IPolylineArray

Returns

IPolygonArray

Buffer(ISpatialReference, ISpatialReference, ISpatialReference, IDoubleArray, IUnit, bool, IGeometryArray)

IGeometryArray Buffer(ISpatialReference pInSR, ISpatialReference pBufferSR, ISpatialReference pOutSR, IDoubleArray pDistances, IUnit pUnit, bool bUnion, IGeometryArray pInGeometries)

Parameters

pInSR ISpatialReference
pBufferSR ISpatialReference
pOutSR ISpatialReference
pDistances IDoubleArray
pUnit IUnit
bUnion bool
pInGeometries IGeometryArray

Returns

IGeometryArray

BufferGeodesic(ISpatialReference, ISpatialReference, IDoubleArray, double, ILinearUnit, bool, IGeometryArray)

Constructs true buffer regions around Points, lines and polygons using true geodesic distances and directions.

IGeometryArray BufferGeodesic(ISpatialReference pInSR, ISpatialReference pOutSR, IDoubleArray pDistances, double bufferDeviation, ILinearUnit pLinearDistanceUnit, bool bUnion, IGeometryArray pInGeometries)

Parameters

pInSR ISpatialReference
pOutSR ISpatialReference
pDistances IDoubleArray
bufferDeviation double
pLinearDistanceUnit ILinearUnit
bUnion bool
pInGeometries IGeometryArray

Returns

IGeometryArray

Remarks

If

geometries
are in geographic coordinate system, then
geodesic
needs to be set to
true
in order to generate a buffer polygon using a geodesic distance. The
bufferSR
input parameter will be ignored when
geodesic
is set to
true
.

 

 

ConvexHull(ISpatialReference, IGeometryArray)

IGeometry ConvexHull(ISpatialReference pSR, IGeometryArray pInGeometryArray)

Parameters

pSR ISpatialReference
pInGeometryArray IGeometryArray

Returns

IGeometry

Cut(ISpatialReference, IGeometryArray, IPolyline, out ILongArray)

IGeometryArray Cut(ISpatialReference pSR, IGeometryArray pTargets, IPolyline pCutter, out ILongArray ppCutIndexes)

Parameters

pSR ISpatialReference
pTargets IGeometryArray
pCutter IPolyline
ppCutIndexes ILongArray

Returns

IGeometryArray

Densify(ISpatialReference, IGeometryArray, double, bool, double)

IGeometryArray Densify(ISpatialReference pSR, IGeometryArray pInGeometries, double maxSegmentLength, bool useDeviationDensification, double densificationParameter)

Parameters

pSR ISpatialReference
pInGeometries IGeometryArray
maxSegmentLength double
useDeviationDensification bool
densificationParameter double

Returns

IGeometryArray

DensifyGeodesic(ISpatialReference, IGeometryArray, double, ILinearUnit)

IGeometryArray DensifyGeodesic(ISpatialReference pSR, IGeometryArray pInGeometries, double maxSegmentLength, ILinearUnit pLengthUnit)

Parameters

pSR ISpatialReference
pInGeometries IGeometryArray
maxSegmentLength double
pLengthUnit ILinearUnit

Returns

IGeometryArray

Difference(ISpatialReference, IGeometryArray, IGeometry)

IGeometryArray Difference(ISpatialReference pSR, IGeometryArray pInGA1, IGeometry pInG2)

Parameters

pSR ISpatialReference
pInGA1 IGeometryArray
pInG2 IGeometry

Returns

IGeometryArray

FindSRByWKID(string, int, int, bool, bool)

ISpatialReference FindSRByWKID(string authority, int wkid, int WKID_Z, bool bDefaultXYResolution, bool bDefaultXYTolerance)

Parameters

authority string
wkid int
WKID_Z int
bDefaultXYResolution bool
bDefaultXYTolerance bool

Returns

ISpatialReference

FindSRByWKT(string, string, bool, bool)

ISpatialReference FindSRByWKT(string wkt, string WKT_Z, bool bDefaultXYResolution, bool bDefaultXYTolerance)

Parameters

wkt string
WKT_Z string
bDefaultXYResolution bool
bDefaultXYTolerance bool

Returns

ISpatialReference

FindUnitsByWKID(string, int)

IUnit FindUnitsByWKID(string authority, int wkid)

Parameters

authority string
wkid int

Returns

IUnit

FindUnitsByWKT(string)

IUnit FindUnitsByWKT(string wkt)

Parameters

wkt string

Returns

IUnit

Generalize(ISpatialReference, IGeometryArray, double, ILinearUnit)

IGeometryArray Generalize(ISpatialReference pSR, IGeometryArray pInGA, double maxDeviation, ILinearUnit pDeviationUnit)

Parameters

pSR ISpatialReference
pInGA IGeometryArray
maxDeviation double
pDeviationUnit ILinearUnit

Returns

IGeometryArray

GetAreasAndLengths(ISpatialReference, IPolygonArray, out IDoubleArray, out IDoubleArray)

void GetAreasAndLengths(ISpatialReference pSR, IPolygonArray pInPolygons, out IDoubleArray ppAreas, out IDoubleArray ppLengths)

Parameters

pSR ISpatialReference
pInPolygons IPolygonArray
ppAreas IDoubleArray
ppLengths IDoubleArray

GetAreasAndLengths2(ISpatialReference, IPolygonArray, ILinearUnit, ILinearUnit, esriAreaUnits, out IDoubleArray, out IDoubleArray)

void GetAreasAndLengths2(ISpatialReference pSR, IPolygonArray pInPolygons, ILinearUnit pLengthUnit, ILinearUnit pAreaUnit, esriAreaUnits areaUnitEnum, out IDoubleArray ppAreas, out IDoubleArray ppLengths)

Parameters

pSR ISpatialReference
pInPolygons IPolygonArray
pLengthUnit ILinearUnit
pAreaUnit ILinearUnit
areaUnitEnum esriAreaUnits
ppAreas IDoubleArray
ppLengths IDoubleArray

GetAreasAndLengthsGeodesic(ISpatialReference, IPolygonArray, ILinearUnit, ILinearUnit, esriAreaUnits, out IDoubleArray, out IDoubleArray)

Returns true geodesic area and geodesic perimeter length for each input polygon.

void GetAreasAndLengthsGeodesic(ISpatialReference pSR, IPolygonArray pPolygons, ILinearUnit pLengthUnit, ILinearUnit pAreaUnit, esriAreaUnits areaUnitEnum, out IDoubleArray ppAreas, out IDoubleArray ppLengths)

Parameters

pSR ISpatialReference
pPolygons IPolygonArray
pLengthUnit ILinearUnit
pAreaUnit ILinearUnit
areaUnitEnum esriAreaUnits
ppAreas IDoubleArray
ppLengths IDoubleArray

Remarks

Use this method if you want to calculate an area or length using only the vertices of the polygon and define the lines between the points as geodesic segments independent of the actual shape of the polygon. A geodesic segment is the shortest path between two points on an ellipsoid. 

The returned areas and lengths are expressed in the specified area units and linear units, if present, or in the units of the spatial reference. If AreaUnit and LengthUnit are not specified and the input spatial reference is a geographic coordinate system, then the lengths and areas are expressed in meters. This method calculates the ellipsoidal shortest path distance between each pair of the vertices in the polylines.

The spatial reference can be a projected or a geographic coordinate system. If the former, then the geometries are first inverse projected into its associated geographic coordinate system and then the distance calculations are performed.

GetAreasAndLengthsPreserveShape(ISpatialReference, IPolygonArray, ILinearUnit, ILinearUnit, esriAreaUnits, out IDoubleArray, out IDoubleArray)

Returns true area and perimeter length for each input polygon.

void GetAreasAndLengthsPreserveShape(ISpatialReference pSR, IPolygonArray pPolygons, ILinearUnit pLengthUnit, ILinearUnit pAreaUnit, esriAreaUnits areaUnitEnum, out IDoubleArray ppAreas, out IDoubleArray ppLengths)

Parameters

pSR ISpatialReference
pPolygons IPolygonArray
pLengthUnit ILinearUnit
pAreaUnit ILinearUnit
areaUnitEnum esriAreaUnits
ppAreas IDoubleArray
ppLengths IDoubleArray

Remarks

The method calculates the area or length of the geometry on the surface of the Earth ellipsoid, for geometry defined in projected or geographic coordinate system. This method preserves the shape of the geometry in its coordinate system. This means the true area or length will be calculated for the geometry you see in the map. (What you see is what you get.)

The returned lengths and areas are expressed in the specified linear units and area units, if present, or in the units of the spatial reference. If AreaUnit and LengthUnit are not specified and the input spatial reference is a geographic coordinate system, then the lengths and areas are expressed in meters.

GetDistance(ISpatialReference, IGeometry, IGeometry, ILinearUnit)

double GetDistance(ISpatialReference pSR, IGeometry pG1, IGeometry pG2, ILinearUnit pDistanceUnit)

Parameters

pSR ISpatialReference
pG1 IGeometry
pG2 IGeometry
pDistanceUnit ILinearUnit

Returns

double

GetDistanceGeodesic(ISpatialReference, IGeometry, IGeometry, ILinearUnit)

double GetDistanceGeodesic(ISpatialReference pSR, IGeometry pG1, IGeometry pG2, ILinearUnit pDistanceUnit)

Parameters

pSR ISpatialReference
pG1 IGeometry
pG2 IGeometry
pDistanceUnit ILinearUnit

Returns

double

GetLabelPoints(ISpatialReference, IPolygonArray)

IPointArray GetLabelPoints(ISpatialReference pSR, IPolygonArray pInPolygons)

Parameters

pSR ISpatialReference
pInPolygons IPolygonArray

Returns

IPointArray

GetLengths(ISpatialReference, IPolylineArray)

IDoubleArray GetLengths(ISpatialReference pSR, IPolylineArray pInPolylines)

Parameters

pSR ISpatialReference
pInPolylines IPolylineArray

Returns

IDoubleArray

GetLengths2(ISpatialReference, IPolylineArray, ILinearUnit)

IDoubleArray GetLengths2(ISpatialReference pSR, IPolylineArray pInPolylines, ILinearUnit pLengthUnit)

Parameters

pSR ISpatialReference
pInPolylines IPolylineArray
pLengthUnit ILinearUnit

Returns

IDoubleArray

GetLengthsGeodesic(ISpatialReference, IPolylineArray, ILinearUnit)

IDoubleArray GetLengthsGeodesic(ISpatialReference pSR, IPolylineArray polylines, ILinearUnit pLengthUnit)

Parameters

pSR ISpatialReference
polylines IPolylineArray
pLengthUnit ILinearUnit

Returns

IDoubleArray

GetLengthsPreserveShape(ISpatialReference, IPolylineArray, ILinearUnit)

Returns true length of each polyline.

IDoubleArray GetLengthsPreserveShape(ISpatialReference pSR, IPolylineArray polylines, ILinearUnit pLengthUnit)

Parameters

pSR ISpatialReference
polylines IPolylineArray
pLengthUnit ILinearUnit

Returns

IDoubleArray

Remarks

The method calculates the length of the geometry on the surface of the Earth ellipsoid, for geometry defined in projected or geographic coordinate system. This method preserves the shape of the geometry in its coordinate system. This means the true length will be calculated for the geometry you see in the map. (What you see is what you get.)

The returned lengths are expressed in the specified linear units, if present, or in the units of the spatial reference. If LengthUnit is not specified and the input spatial reference is a geographic coordinate system, then the lengths are expressed in meters.

Intersect(ISpatialReference, IGeometryArray, IGeometry)

IGeometryArray Intersect(ISpatialReference pSR, IGeometryArray pInGA1, IGeometry pInG2)

Parameters

pSR ISpatialReference
pInGA1 IGeometryArray
pInG2 IGeometry

Returns

IGeometryArray

Offset(ISpatialReference, IGeometryArray, double, ILinearUnit, int, double)

IGeometryArray Offset(ISpatialReference pSR, IGeometryArray pInGA, double offsetDistance, ILinearUnit pOffsetUnit, int offsetHow, double bevelRatio)

Parameters

pSR ISpatialReference
pInGA IGeometryArray
offsetDistance double
pOffsetUnit ILinearUnit
offsetHow int
bevelRatio double

Returns

IGeometryArray

Project(ISpatialReference, ISpatialReference, esriTransformDirection, ITransformation, IEnvelope, IGeometryArray)

IGeometryArray Project(ISpatialReference pInSR, ISpatialReference pOutSR, esriTransformDirection xFormDir, ITransformation pXForm, IEnvelope pExtent, IGeometryArray pInGeometries)

Parameters

pInSR ISpatialReference
pOutSR ISpatialReference
xFormDir esriTransformDirection
pXForm ITransformation
pExtent IEnvelope
pInGeometries IGeometryArray

Returns

IGeometryArray

Relation(ISpatialReference, IGeometryArray, IGeometryArray, esriSpatialRelationEnum, string)

IRelationResultArray Relation(ISpatialReference pSR, IGeometryArray pInGA1, IGeometryArray pInGA2, esriSpatialRelationEnum r, string param)

Parameters

pSR ISpatialReference
pInGA1 IGeometryArray
pInGA2 IGeometryArray
r esriSpatialRelationEnum
param string

Returns

IRelationResultArray

Reshape(ISpatialReference, IGeometry, IPolyline)

IGeometry Reshape(ISpatialReference pSR, IGeometry pTarget, IPolyline pReshaper)

Parameters

pSR ISpatialReference
pTarget IGeometry
pReshaper IPolyline

Returns

IGeometry

Simplify(ISpatialReference, IGeometryArray)

IGeometryArray Simplify(ISpatialReference pSR, IGeometryArray pInGeometries)

Parameters

pSR ISpatialReference
pInGeometries IGeometryArray

Returns

IGeometryArray

TrimExtend(ISpatialReference, IPolylineArray, IPolyline, int)

IPolylineArray TrimExtend(ISpatialReference pSR, IPolylineArray pInPA, IPolyline pTrimExtendTo, int extendHow)

Parameters

pSR ISpatialReference
pInPA IPolylineArray
pTrimExtendTo IPolyline
extendHow int

Returns

IPolylineArray

Union(ISpatialReference, IGeometryArray)

IGeometry Union(ISpatialReference pSR, IGeometryArray pInGA)

Parameters

pSR ISpatialReference
pInGA IGeometryArray

Returns

IGeometry