GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
gis/datum.c File Reference
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Include dependency graph for gis/datum.c:

Go to the source code of this file.

Macros

#define DATUMTABLE   "/etc/proj/datum.table"
 

Functions

int G_get_datum_by_name (const char *name)
 
const char * G_datum_name (int n)
 
const char * G_datum_description (int n)
 
const char * G_datum_ellipsoid (int n)
 
int G_get_datumparams_from_projinfo (const struct Key_Value *projinfo, char *datumname, char *params)
 
void G_read_datum_table (void)
 

Macro Definition Documentation

◆ DATUMTABLE

#define DATUMTABLE   "/etc/proj/datum.table"

Definition at line 17 of file gis/datum.c.

Function Documentation

◆ G_datum_description()

const char* G_datum_description ( int  n)

Definition at line 66 of file gis/datum.c.

References G_read_datum_table().

◆ G_datum_ellipsoid()

const char* G_datum_ellipsoid ( int  n)

Definition at line 76 of file gis/datum.c.

References G_read_datum_table().

◆ G_datum_name()

const char* G_datum_name ( int  n)

Definition at line 56 of file gis/datum.c.

References G_read_datum_table().

◆ G_get_datum_by_name()

int G_get_datum_by_name ( const char *  name)

Definition at line 43 of file gis/datum.c.

References G_read_datum_table().

◆ G_get_datumparams_from_projinfo()

int G_get_datumparams_from_projinfo ( const struct Key_Value projinfo,
char *  datumname,
char *  params 
)

Definition at line 107 of file gis/datum.c.

References G_find_key_value(), and NULL.

◆ G_read_datum_table()

void G_read_datum_table ( void  )

Definition at line 141 of file gis/datum.c.

References file, and GPATH_MAX.

Referenced by G_datum_description(), G_datum_ellipsoid(), G_datum_name(), G_get_datum_by_name(), and G_init_all().