pe_georef_to_geog

Converts Georef strings into geographic coordinates.

Usage syntax

int pe_georef_to_geog(PE_GEOGCS geogcs, int n, char *georef_str[], double coord[][2]);
 

Parameters
geogcs A valid geographic coordinate system object
n Number of points in the coord array
georef_str A pointer to an array of Georef strings
coord Array of points
Description

The Georef grid system is a method of representing positions with an alphanumeric string. The Georef string is based on latitude-longitude coordinates. The first four letters of a Georef string identify a 1x1 degree box. Additional numbers in a Georef string identify smaller areas.

Returns

The number of points converted.

Examples
int i,n;
double coord[N_MAX][2];
char *georef_string[N_MAX];
PE_GEOGCS gcs;

n = 1;
gcs = pe_factory_geogcs(4326); /* WGS 1984 */

georef_string[0] = "EJDF";

/* result is lon = -117.0, lat = 35.0 */
i = pe_georef_to_geog(gcs, n, georef_string, coord);

pe_geogcs_del(gcs);