GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
wind_limits.c
Go to the documentation of this file.
1
17
#include <grass/gis.h>
18
19
35
int
G_limit_east
(
double
*east,
int
proj)
36
{
37
return
1;
38
}
39
40
56
int
G_limit_west
(
double
*west,
int
proj)
57
{
58
return
1;
59
}
60
61
75
int
G_limit_north
(
double
*north,
int
proj)
76
{
77
if
(proj == PROJECTION_LL) {
78
if
(*north > 90.0) {
79
*north = 90.0;
80
return
0;
81
}
82
if
(*north < -90) {
83
*north = -90;
84
return
0;
85
}
86
}
87
88
return
1;
89
}
90
91
105
int
G_limit_south
(
double
*south,
int
proj)
106
{
107
if
(proj == PROJECTION_LL) {
108
if
(*south > 90.0) {
109
*south = 90.0;
110
return
0;
111
}
112
if
(*south < -90) {
113
*south = -90;
114
return
0;
115
}
116
}
117
118
return
1;
119
}
lib
gis
wind_limits.c
Generated on Wed Jun 6 2012 14:04:30 for GRASS Programmer's Manual by
1.8.1