Geoc-array-g2w

Geoc-array-g2w — Converts an array of geo coordinates to 1 or more arrays of user coordinates.

Synopsis

#define             GEOC_TYPE_ARRAY_DATA
                    GeocArrayData;
GType               geoc_array_data_get_type            (void);
GeocArrayData*      geoc_array_data_new                 (void);
GeocArrayData*      geoc_array_data_ref                 (GeocArrayData *data);
void                geoc_array_data_unref               (GeocArrayData *data);
GeocArrayData*      geoc_array_g2w                      (CrPoints *geopoints,
                                                         GeocProjection *projection);

Description

Details

GEOC_TYPE_ARRAY_DATA

#define GEOC_TYPE_ARRAY_DATA (geoc_array_data_get_type())


GeocArrayData

typedef struct {
        CrPoints *points1, *points2;
        double minx, miny, maxx, maxy;
        int ref_count;
} GeocArrayData;


geoc_array_data_get_type ()

GType               geoc_array_data_get_type            (void);

Returns :


geoc_array_data_new ()

GeocArrayData*      geoc_array_data_new                 (void);

Returns :


geoc_array_data_ref ()

GeocArrayData*      geoc_array_data_ref                 (GeocArrayData *data);

data :

Returns :


geoc_array_data_unref ()

void                geoc_array_data_unref               (GeocArrayData *data);

data :


geoc_array_g2w ()

GeocArrayData*      geoc_array_g2w                      (CrPoints *geopoints,
                                                         GeocProjection *projection);

Convert an array of geo-coordinates to world coordinates. The returned data structure may consist of two arrays if the line crosses a border. Be sure to check return arrays for length == 0.

geopoints :

An boxed array of doubles in order longitude, latitude

projection :

The current projection object.

Returns :

A GeocArrayData structure. One or both arrays may be length zero. Use geoc_array_data_unref to free the allocated memory.