Returns the coordinates with which a shape of a given type is created.
Syntax
05 GDL-SHAPE-GET-COORDS.
10 GDL-SGC-HANDLE PIC S9(09) BINARY.
10 GDL-SGC-SHAPE PIC S9(09) BINARY.
10 GDL-SGC-TYPE PIC S9(09) BINARY.
10 GDL-SGC-X-POINT COMP-2.
10 GDL-SGC-Y-POINT COMP-2.
10 GDL-SGC-POINTS-PER-PART PIC S9(09) BINARY.
10 GDL-SGC-PART-COUNT PIC S9(09) BINARY.
10 GDL-SGC-MAX-POINTS PIC S9(09) BINARY.
10 GDL-SGC-MAX-PARTS PIC S9(09) BINARY.
*
CALL "GDLSGC"
USING GDL-SHAPE-GET-COORDS, GDL-RETURN-CODE.
Arguments
GDL-SGC-HANDLE
The gdlHandle initialized by GDLINIT (GDL-INIT- HANDLE). Input.
GDL-SGC-SHAPE
The shape from which to get coordinates. Input.
GDL-SGC-TYPE
The type of shape being examined. Output.
Constants:
GDL-POINT |
GDL-LINE |
GDL-POLYGON |
GDL-SGC-X-POINT
An array of x coordinates in decimal degrees. Output.
GDL-SGC-Y-POINT
An array of y coordinates in decimal degrees. Output.
GDL-SGC-POINTS-PER-PART
An array of long integers indicating the number of points in each part. Output.
GDL-SGC-PART-COUNT
The number of parts. Output.
GDL-SGC-MAX-POINTS
The maximum number of points that fit into the x
and y
arrays above. Input.
GDL-SGC-MAX-PARTS
The maximum number of parts that fit into the pointsPerPart
array above.
Input.
Return Values
GDL-OK | Success |
GDL-ERROR | An internal error occurred |
Prerequisites
None.
Alternates
None.