Defines "Region A" polygons for use in determining whether two regions overlap.
Syntax
01 SPHANDLE PIC S9(9) BINARY.
01 NUMPOINTS PIC S9(9) BINARY.
01 POINTS PIC S9(9) BINARY.
01 SPRETCODE PIC S9(9) BINARY.
*
CALL ‘SPARAP'
USING SPHANDLE, NUMPOINTS, POINTS, SPRETCODE.
Arguments
SPHANDLE Handle from SPINOCK. Input. NUMPOINTS Number of points in the polygon. Input.
POINTS Points describing the polygon (can be user-defined or long/lat).
Input.
Return Values
PIP-OK
PIP-ERROR
Prerequisites
SPINOCK.
Alternates
None.
Notes
You must also call SPARBP.
This procedure defines the first region used by SPCKRO when comparing two regions.
You can compare multiple RegionA polygons to a single second region using the same handle returned by SPINOCK. Call SPCLRAP after SPCKRO or SPCKROX and before additional calls to SPARAP.