| Geoc (geocanvas) Reference Manual | ||||
|---|---|---|---|---|
Geoc-array-g2wGeoc-array-g2w — Converts an array of geo coordinates to 1 or more arrays of user coordinates. |
#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);
typedef struct {
CrPoints *points1, *points2;
double minx, miny, maxx, maxy;
int ref_count;
} GeocArrayData;
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.
|
An boxed array of doubles in order longitude, latitude |
|
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. |