GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
proj/local_proto.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ellps_list
 
struct  datum_list
 

Functions

struct ellps_listread_ellipsoid_table (int)
 
void free_ellps_list (struct ellps_list *)
 
struct datum_listread_datum_table (void)
 Read the current GRASS datum.table from disk and store in memory. More...
 
void free_datum_list (struct datum_list *)
 Free the memory used by a datum_list linked list structure. More...
 

Function Documentation

void free_datum_list ( struct datum_list dstruct)

Free the memory used by a datum_list linked list structure.

Parameters
dstructdatum_list struct to be freed

Definition at line 557 of file proj/datum.c.

References datum_list::ellps, G_free(), datum_list::longname, datum_list::name, datum_list::next, NULL, and old.

Referenced by GPJ_get_datum_by_name(), and GPJ_osr_to_grass().

void free_ellps_list ( struct ellps_list )
struct datum_list* read_datum_table ( void  )

Read the current GRASS datum.table from disk and store in memory.

The datum information is stored in a datum_list linked list structure.

Returns
Pointer to first datum_list element in linked list, or NULL if unable to open datum.table file

Definition at line 485 of file proj/datum.c.

References buf, count, DATUMTABLE, datum_list::dx, datum_list::dy, datum_list::dz, datum_list::ellps, fclose(), fd, file, G_getl2(), G_gisbase(), G_store(), G_strip(), G_warning(), datum_list::longname, datum_list::name, render::name, datum_list::next, NULL, read_datum_table(), and sprintf().

Referenced by GPJ_get_datum_by_name(), GPJ_osr_to_grass(), and read_datum_table().