Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.
NASA Logo
Ocean Color Science Software

ocssw V2022
geographic.c
Go to the documentation of this file.
1 /****************************************************************************
2 Name: geographic
3 
4 Purpose: Provides a "dummy" implementation of the geographic projection.
5  Since the geographic projection is the base projection that everything
6  goes through when being transformed, there isn't any transformation
7  needed for it.
8 
9 ****************************************************************************/
10 #include "oli_local.h"
11 #include "oli_cproj.h"
12 
13 /****************************************************************************
14 Name: geo_print_info
15 
16 Purpose: Prints out the projection parameter information for the geographic
17  projection (there aren't any).
18 
19 ****************************************************************************/
20 static void geo_print_info
21 (
22  const TRANSFORMATION *trans
23 )
24 {
25  gctp_print_title("GEOGRAPHIC");
26 }
27 
28 /****************************************************************************
29 Name: gctp_geo_init
30 
31 Purpose: Initialization routine for the geographic projection.
32 
33 Returns:
34  GCTP_SUCCESS (can't fail, but needs to use the standard init routine
35  prototype)
36 
37 ****************************************************************************/
38 int gctp_geo_init(TRANSFORMATION *trans)
39 {
40  /* only need to set the print info routine here */
41  trans->print_info = geo_print_info;
42  return GCTP_SUCCESS;
43 }
void gctp_print_title(const char *proj_name)
Definition: gctp_report.c:14
int gctp_geo_init(TRANSFORMATION *trans)
Definition: geographic.c:38
#define GCTP_SUCCESS
Definition: gctp.h:82