Returns the coordinates with which a shape of a given type is created.
Syntax
intl gdlShapeGetCoords( gdlHandle hGdl, gdlShape shape, intl* type, double* x, double* y, intl* pointsPerPart, intl partCount, intl maxPoints, intl maxParts );
Arguments
hGdl
The gdlHandle initialized by gdlInitialize. Input.
shape
The shape from which to get coordinates. Input.
type
The type of shape being sought. Output.
GDL Shape Types |
---|
GDL_POINT |
GDL_LINE |
GDL_POLYGON |
x
An array of x coordinates in decimal degrees. Output.
y
An array of y coordinates in decimal degrees. Output.
pointsPerPart
An array of long integers indicating the number of points in each part. Output.
partCount
The number of parts. Output.
maxPoints
The maximum number of points that fit into the x and y arrays above. Input.
maxParts
The maximum number of parts that fit into the pointsPerPart array above. Input.
Return values
GDL_NOT_LICENSED
GDL_ERROR
GDL_OK
Prerequisites
None.
Alternates
None.