c_wdbseq - Find the segments to be processed from the WDB2 file based on the specified rank and geographic location

SYNTAX

FUNCTION c_wdbseq(fp_seq, ranks, crossflg, minlat, minlon, maxlat, maxlon, total_pts, fp_rel)

    FILE	 *fp_seq;
    long	 ranks[];
    long	 crossflg;
    float	 *minlat;
    float	 *minlon;
    float	 *maxlat;
    float	 *maxlon;
    long	 *total_pts;
    FILE	 *fp_rel;

PARAMETERS

fp_seq (FILE *, input)

File pointer to the WDBII sequential file.

ranks (long[], input)

Desired rankings in WDBII. This array may be initialized by calling c_wdbrank():

     = TRUE	WDBII ranking set
     = FALSE	WDBII ranking not set

crossflg (long, input)

Indicates if the area of interest crosses the International Date Line.

     = TRUE  (1)	Crosses International Date Line
     = FALSE (0)	Doesn't cross International Date Line

minlat (float *, input)

The minimum latitude of the area of interest.

minlon (float *, input)

The minimum longitude of the area of interest.

maxlat (float *, input)

The maximum latitude of the area of interest.

maxlon (float *, input)

The maximum longitude of the area of interest.

total_pts (long *, output)

The total number of points in the line segment.

fp_rel (FILE *, input)

The file pointer to the WDBII relative file.

DESCRIPTION

Given an area of interest and desired features, c_wdbseq() finds the next WDBII segment meeting these criteria, sets the relative file pointer to the segment, and returns the number of points in that segment. The segment may be read by calling c_wdbrel().

RETURN VALUE

c_wdbseq() returns

    E_SUCC --> Successful completion
    other  --> Operation failed