This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryServer Interface > IGeometryServer.GetLabelPoints Method (ArcObjects .NET 10.5 SDK) |
Calculates an interior point for each polygon.
[Visual Basic .NET] Public Function GetLabelPoints ( _ ByVal pSR As ISpatialReference, _ ByVal pInPolygons As IPolygonArray _ ) As IPointArray
[C#] public IPointArray GetLabelPoints ( ISpatialReference pSR, IPolygonArray pInPolygons );
[C++]
HRESULT GetLabelPoints(
ISpatialReference* pSR,
IPolygonArray* pInPolygons,
IPointArray** pOutLabels
);
[C++]
Parameters pSR
pSR is a parameter of type ISpatialReference pInPolygons
pInPolygons is a parameter of type IPolygonArray pOutLabels [out, retval]
pOutLabels is a parameter of type IPointArray
Generates one point geometry per input polygon. Each point is guaranteed to be inside its corresponding polygon. The ArcObjects IArea::LabelPoint property is used to generate the output points. All input geometries are assumed to be defined in the input spatial reference pSR. pSR cannot be nil.