Interface IGeometryServer3
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
pSRISpatialReferencepInPolygonsIPolygonArraypCompletionLinesIPolylineArray
Returns
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
pInSRISpatialReferencepBufferSRISpatialReferencepOutSRISpatialReferencepDistancesIDoubleArraypUnitIUnitbUnionboolpInGeometriesIGeometryArray
Returns
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
pInSRISpatialReferencepOutSRISpatialReferencepDistancesIDoubleArraybufferDeviationdoublepLinearDistanceUnitILinearUnitbUnionboolpInGeometriesIGeometryArray
Returns
Remarks
If
are in geographic coordinate system, then
geometries
needs to be set to
geodesic
in order to generate a buffer polygon using a geodesic distance. The
true
input parameter will be ignored when
bufferSR
is set to
geodesic
.true
ConvexHull(ISpatialReference, IGeometryArray)
IGeometry ConvexHull(ISpatialReference pSR, IGeometryArray pInGeometryArray)
Parameters
pSRISpatialReferencepInGeometryArrayIGeometryArray
Returns
Cut(ISpatialReference, IGeometryArray, IPolyline, out ILongArray)
IGeometryArray Cut(ISpatialReference pSR, IGeometryArray pTargets, IPolyline pCutter, out ILongArray ppCutIndexes)
Parameters
pSRISpatialReferencepTargetsIGeometryArraypCutterIPolylineppCutIndexesILongArray
Returns
Densify(ISpatialReference, IGeometryArray, double, bool, double)
IGeometryArray Densify(ISpatialReference pSR, IGeometryArray pInGeometries, double maxSegmentLength, bool useDeviationDensification, double densificationParameter)
Parameters
pSRISpatialReferencepInGeometriesIGeometryArraymaxSegmentLengthdoubleuseDeviationDensificationbooldensificationParameterdouble
Returns
DensifyGeodesic(ISpatialReference, IGeometryArray, double, ILinearUnit)
IGeometryArray DensifyGeodesic(ISpatialReference pSR, IGeometryArray pInGeometries, double maxSegmentLength, ILinearUnit pLengthUnit)
Parameters
pSRISpatialReferencepInGeometriesIGeometryArraymaxSegmentLengthdoublepLengthUnitILinearUnit
Returns
Difference(ISpatialReference, IGeometryArray, IGeometry)
IGeometryArray Difference(ISpatialReference pSR, IGeometryArray pInGA1, IGeometry pInG2)
Parameters
pSRISpatialReferencepInGA1IGeometryArraypInG2IGeometry
Returns
FindSRByWKID(string, int, int, bool, bool)
ISpatialReference FindSRByWKID(string authority, int wkid, int WKID_Z, bool bDefaultXYResolution, bool bDefaultXYTolerance)
Parameters
Returns
FindSRByWKT(string, string, bool, bool)
ISpatialReference FindSRByWKT(string wkt, string WKT_Z, bool bDefaultXYResolution, bool bDefaultXYTolerance)
Parameters
Returns
FindUnitsByWKID(string, int)
IUnit FindUnitsByWKID(string authority, int wkid)
Parameters
Returns
FindUnitsByWKT(string)
IUnit FindUnitsByWKT(string wkt)
Parameters
wktstring
Returns
Generalize(ISpatialReference, IGeometryArray, double, ILinearUnit)
IGeometryArray Generalize(ISpatialReference pSR, IGeometryArray pInGA, double maxDeviation, ILinearUnit pDeviationUnit)
Parameters
pSRISpatialReferencepInGAIGeometryArraymaxDeviationdoublepDeviationUnitILinearUnit
Returns
GetAreasAndLengths(ISpatialReference, IPolygonArray, out IDoubleArray, out IDoubleArray)
void GetAreasAndLengths(ISpatialReference pSR, IPolygonArray pInPolygons, out IDoubleArray ppAreas, out IDoubleArray ppLengths)
Parameters
pSRISpatialReferencepInPolygonsIPolygonArrayppAreasIDoubleArrayppLengthsIDoubleArray
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
pSRISpatialReferencepInPolygonsIPolygonArraypLengthUnitILinearUnitpAreaUnitILinearUnitareaUnitEnumesriAreaUnitsppAreasIDoubleArrayppLengthsIDoubleArray
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
pSRISpatialReferencepPolygonsIPolygonArraypLengthUnitILinearUnitpAreaUnitILinearUnitareaUnitEnumesriAreaUnitsppAreasIDoubleArrayppLengthsIDoubleArray
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
pSRISpatialReferencepPolygonsIPolygonArraypLengthUnitILinearUnitpAreaUnitILinearUnitareaUnitEnumesriAreaUnitsppAreasIDoubleArrayppLengthsIDoubleArray
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
pSRISpatialReferencepG1IGeometrypG2IGeometrypDistanceUnitILinearUnit
Returns
GetDistanceGeodesic(ISpatialReference, IGeometry, IGeometry, ILinearUnit)
double GetDistanceGeodesic(ISpatialReference pSR, IGeometry pG1, IGeometry pG2, ILinearUnit pDistanceUnit)
Parameters
pSRISpatialReferencepG1IGeometrypG2IGeometrypDistanceUnitILinearUnit
Returns
GetLabelPoints(ISpatialReference, IPolygonArray)
IPointArray GetLabelPoints(ISpatialReference pSR, IPolygonArray pInPolygons)
Parameters
pSRISpatialReferencepInPolygonsIPolygonArray
Returns
GetLengths(ISpatialReference, IPolylineArray)
IDoubleArray GetLengths(ISpatialReference pSR, IPolylineArray pInPolylines)
Parameters
pSRISpatialReferencepInPolylinesIPolylineArray
Returns
GetLengths2(ISpatialReference, IPolylineArray, ILinearUnit)
IDoubleArray GetLengths2(ISpatialReference pSR, IPolylineArray pInPolylines, ILinearUnit pLengthUnit)
Parameters
pSRISpatialReferencepInPolylinesIPolylineArraypLengthUnitILinearUnit
Returns
GetLengthsGeodesic(ISpatialReference, IPolylineArray, ILinearUnit)
IDoubleArray GetLengthsGeodesic(ISpatialReference pSR, IPolylineArray polylines, ILinearUnit pLengthUnit)
Parameters
pSRISpatialReferencepolylinesIPolylineArraypLengthUnitILinearUnit
Returns
GetLengthsPreserveShape(ISpatialReference, IPolylineArray, ILinearUnit)
Returns true length of each polyline.
IDoubleArray GetLengthsPreserveShape(ISpatialReference pSR, IPolylineArray polylines, ILinearUnit pLengthUnit)
Parameters
pSRISpatialReferencepolylinesIPolylineArraypLengthUnitILinearUnit
Returns
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
pSRISpatialReferencepInGA1IGeometryArraypInG2IGeometry
Returns
Offset(ISpatialReference, IGeometryArray, double, ILinearUnit, int, double)
IGeometryArray Offset(ISpatialReference pSR, IGeometryArray pInGA, double offsetDistance, ILinearUnit pOffsetUnit, int offsetHow, double bevelRatio)
Parameters
pSRISpatialReferencepInGAIGeometryArrayoffsetDistancedoublepOffsetUnitILinearUnitoffsetHowintbevelRatiodouble
Returns
Project(ISpatialReference, ISpatialReference, esriTransformDirection, ITransformation, IEnvelope, IGeometryArray)
IGeometryArray Project(ISpatialReference pInSR, ISpatialReference pOutSR, esriTransformDirection xFormDir, ITransformation pXForm, IEnvelope pExtent, IGeometryArray pInGeometries)
Parameters
pInSRISpatialReferencepOutSRISpatialReferencexFormDiresriTransformDirectionpXFormITransformationpExtentIEnvelopepInGeometriesIGeometryArray
Returns
Relation(ISpatialReference, IGeometryArray, IGeometryArray, esriSpatialRelationEnum, string)
IRelationResultArray Relation(ISpatialReference pSR, IGeometryArray pInGA1, IGeometryArray pInGA2, esriSpatialRelationEnum r, string param)
Parameters
pSRISpatialReferencepInGA1IGeometryArraypInGA2IGeometryArrayresriSpatialRelationEnumparamstring
Returns
Reshape(ISpatialReference, IGeometry, IPolyline)
IGeometry Reshape(ISpatialReference pSR, IGeometry pTarget, IPolyline pReshaper)
Parameters
pSRISpatialReferencepTargetIGeometrypReshaperIPolyline
Returns
Simplify(ISpatialReference, IGeometryArray)
IGeometryArray Simplify(ISpatialReference pSR, IGeometryArray pInGeometries)
Parameters
pSRISpatialReferencepInGeometriesIGeometryArray
Returns
TrimExtend(ISpatialReference, IPolylineArray, IPolyline, int)
IPolylineArray TrimExtend(ISpatialReference pSR, IPolylineArray pInPA, IPolyline pTrimExtendTo, int extendHow)
Parameters
pSRISpatialReferencepInPAIPolylineArraypTrimExtendToIPolylineextendHowint
Returns
Union(ISpatialReference, IGeometryArray)
IGeometry Union(ISpatialReference pSR, IGeometryArray pInGA)
Parameters
pSRISpatialReferencepInGAIGeometryArray