Creates a shape of a given type with specified coordinates.
Syntax
intl gdlShapeCreate( gdlHandle hGdl, gdlShape* shape, char* name, intl type, double* x, double* y, intl* pointsPerPart, intl partCount);
Arguments
hGdl
The gdlHandle initialized by gdlInitialize. Input.
shape
A pointer to the new gdlShape object. Output.
name
The name of the object being created. Input.
type
The type of shape to create. Input.
Type options:
GDL Shape Types |
---|
GDL_POINT |
GDL_LINE |
GDL_POLYGON |
x
An array of x coordinates in decimal degrees. Input.
y
An array of y coordinates in decimal degrees. Input.
pointsPerPart
An array of integers indicating the number of points in each part. Input.
partCount
The number of parts. Input.
Return values
GDL_WRONG_TYPE
GDL_NOT_FOUND
GDL_ERROR
GDL_OK
Prerequisites
gdlInitialize
Alternates
None.
Notes
Following instances of this function, you should call gdlShapeFree with the output shape when you are finished using the output shape to release system resources.